npm run hot merges stylesheets
See original GitHub issue- Laravel Mix Version: v5.0.0
- Node Version (
node -v
): 13.1.0 - NPM Version (
npm -v
): 6.12.1 - OS: macOS Mojave 10.14.6
Description:
When compiling multiple stylesheets with mix, npm run hot
seems to merge them and server them all, regardless of whether or not that sheet is included on the page.
Steps To Reproduce:
// webpack.mix.js
mix.sass('resources/sass/page_one.scss', 'public/css/page_one.css')
.sass('resources/sass/page_two.scss', 'public/css/page_two.css')
.sass('resources/sass/page_three.scss', 'public/css/page_three.css') ;
// then in your head tags
<link rel="stylesheet" href="{{ mix('css/page_three.css') }}">
npm run dev/watch/prod all work normally, but npm run hot
will load all three stylesheets.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Refreshing styles with "npm run hot" and sass #233 - GitHub
Greetings! I have an issue with refreshing styles in hot-mode, I don't see any errors, build was successfully compiled, I saw some movements ......
Read more >npm run dev is showing error on existing Laravel Project ...
Then I run npm install to install all dependencies and update all the dependencies. (Since I already had some updated dependencies).
Read more >The best webpack configurations for React applications
If you've struggled to configure webpack for your React app, look no further. We cover both generic and specific config needs.
Read more >Tree Shaking - webpack
Tree shaking is a term commonly used in the JavaScript context for dead-code elimination. It relies on the static structure of ES2015 module...
Read more >Moved a Laravel 8 app to another domain and now 'npm run ...
When I run npm run prod I get this error (server path and domain name removed): ... .minify(['public/css/merged.css', 'public/js/merged-header.js', ...
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 Free
Top 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
This is still an issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.