Dynamic import builds `.js` and '.css' file. Don't want seperate `.css` file.
See original GitHub issueWhat problem does this feature solve?
I have lots of dynamic import in my peoject.
Each one builds two files. one is js
one is css
.
However most of css files are too small which results in too many http request.
What does the proposed API look like?
How to config vue.config.js
can solve this problem?
Better understanding
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Lazy load CSS with the help of dynamic import ... - Medium
The goal of the solution is loading CSS on demand. To achieve such objective, we can take advantage of the JavaScript dynamic import()...
Read more >Dynamically load and unload content of css file in javascript ...
Ideally, what I want is the ability to conditionally render/import the css files. I've tried a few things most of them don't work...
Read more >Dynamically import CSS · Issue #261 · ef4/ember-auto-import
I want them to be separate files, same as the JS chunk files created. And then, perhaps, have an easy way of importing...
Read more >Using CSS Module Scripts to import stylesheets - web.dev
Learn how to use CSS module scripts to import CSS stylesheets using the same syntax as JavaScript modules.
Read more >Component-Scoped Styles with CSS Modules - Gatsby
CSS Modules let you write styles in CSS files but consume them as JavaScript objects for additional processing and safety. CSS Modules are...
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
If you are using webpack 4, you can extracting-css-based-on-entry according to doc of mini-css-extract-plugin
vue.config.js
or you can group all css in
.vue
,@fangbinwei 好的,感谢!