Laravel Elixir - compile and merge bootstrap files with custom filename

Trying to merge bootstrap folder into one .scss file but doesn't work.

It either puts them in a file named "all.scss" or I try to give the name of the output:

mix.styles([
    'bootstrap/*.scss'
], 'resources/assets/sass/bootstrap.scss', 'resources/assets/sass/');

      

He created a directory called "bootstrap.scss" and then put the all.scss file into it.

How can I combine all files in bootstrap folder into one scss file with my name?

+3


source to share


1 answer


Presumably because your mixing css files, if you want to do scss files (or sass) you need to do:

mix.sass([
 'bootstrap/*.scss'
], 'resources/assets/sass/'name of choice'.scss');

      



Also worth mentioning, you probably want to put the output file in a folder public

. So something like this:

'public/vendor/`name of choice`.scss'

      

+1


source







All Articles