Add Bulma to Laravel
If you want to use the Bulma CSS framework in Laravel, the steps below might help you:
npm install bulma --save-dev
Your app.scss should like this:
@import './node_modules/bulma/bulma.sass';
Your _variables.scss should look like this (as an example):
$body-background: whitesmoke;
Your webpack.mix.js should look like this:
let mix = require('laravel-mix');
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
Optional: If not required, you can now remove jQuery.
Then, compile everything using:
npm run dev
Related Posts
- Install Laravel in Cloud9 PHP Workspace
- Install Laravel Spark Using Homestead and Create an Application
- Add a self hosted alpine.js file with Laravel
- Laravel 5.5 at Codeanywhere
- Install Laravel 5.5 at Codeanywhere with PHP 7.1 and MySQL 5.7
- Add New Project To Laravel Homestead
- Laravel - fix "1071 Specified key was too long; max key length is 1000" error
- Add Fontawesome Pro to Your Laravel Project Using Npm
- Setup Xdebug in Laravel Valet with PHP 7.4 and PHPStorm