LESS output is always bundled into JS
See original GitHub issueFor CSS and SASS in create-react-app
- development build (
npm start
), the css is bundled with thejs
files. - production build (
npm build
) , the css is chunked out intocss
files.
While using this plugin, the css is always bundled with the js
files. Ideally this less plugin functions the same way the sass loader in CRA does, which would include extracting CSS from the js bundle and including it in css files.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:7 (3 by maintainers)
Top Results From Across the Web
why webpack output is always main.js? - Stack Overflow
When I run the command npx webpack or npm run build , the output file is always saved as dist/main.js instead of dist/bundle.js....
Read more >Output Management - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >Possible ways to reduce your webpack bundle size - Medium
Webpack is an awesome static bundler for your JavaScript applications but things can get a little messy when the size of your webpack...
Read more >Less.js: Getting started
You can do this pretty intuitively in Less. Say you want to bundle some mixins and variables under #bundle , for later reuse...
Read more >3 ways to reduce webpack bundle size - Jakob Lind
Are you using CSS in JavaScript? Then you could extract the CSS to a separate JavaScript bundle or a CSS file. The advantage...
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
No problem. Thanks for the package.
I was thinking, one interesting way to solve this particular issue, and to keep it entirely in sync with how the set of loaders supporting sass in official CRA work, is to…
getStyleLoader
)sass-loader
forless-loader
Awesome thanks. Will check it out this week.