How to build multiple css files?
See original GitHub issueThis works:
mix
.js('assets/js/admin.js', 'dist/js/')
.js('assets/js/frontend.js', 'dist/js/')
;
However, this doesn’t:
mix
.sass('assets/sass/admin.scss', 'dist/css/')
.sass('assets/sass/frontend.scss', 'dist/css/')
;
It results in the following error:
Error: Laravel Mix: Limit your “mix.sass()” calls to one.
Is this a bug or an intended limitation?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:26 (4 by maintainers)
Top Results From Across the Web
Can you apply multiple stylesheets to a single page? - CSS FAQ
Yes, you can apply more than one stylesheet to an HTML file. For each stylesheet you link to a page, you would just...
Read more >Single huge .css file vs. multiple smaller specific .css files?
This is a hard one to answer. Both options have their pros and cons in my opinion. I personally don't love reading through...
Read more >How to include one CSS file in another? - GeeksforGeeks
Is it possible to include one CSS file in another? Yes, It is possible to include one CSS file in another and it...
Read more >How To Use Multiple CSS Files On A Large Web Project
The simplest way to combine external CSS files is to copy / paste all of the code you need into a single file....
Read more >How could you generate multiple CSS files at once? #6612
My best guess is you want to have a separate CSS file for each "component" in your site? If that's the case just...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just pushed support for this to master. Hasn’t been tagged yet, but will soon. So you can soon do:
And that will create
public/css/app.css
andpublic/css/other.css
.