Add extract css false option in lib build mode
See original GitHub issueClear and concise description of the problem
When buliding a lib, css will be extracted in a single file style.css
, is there a way to bundle css in output js.
Suggested solution
Like rollup-plugin-postcss
can set extract
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that request the same feature to avoid creating a duplicate.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:30
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Extracting CSS into JS with Angular 11 (deprecated extractCss)
Before Angular 11, we used to do this with extractCss: false in then angular.json config. Now this option has been marked deprecated, and...
Read more >MiniCssExtractPlugin - webpack
If true, emits a file (writes a file to the filesystem). If false, the plugin will extract the CSS but will not emit...
Read more >Build Options - Vite
If disabled, all CSS in the entire project will be extracted into a single CSS file. Note. If you specify build.lib , build.cssCodeSplit...
Read more >The build Property - Nuxt
extractCSS. Enables Common CSS Extraction using Vue Server Renderer guidelines . Type: Boolean or Object; Default: false.
Read more >CodeMirror 5 User Manual
Options are not checked in any way, so setting bogus option values is bound ... an extra CSS class will be added to...
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
i cant really find a sustainable way to make the styles inline in lib mode… my lib is used in more then 5 place… and expected to grow… and i don’t want to manually import style file everywhere… so wanted to include as build itself…
is vite going proposed any solution ? 🤔
I wrote a vite plugin:
https://github.com/ruofee/vue-dynamic-form-component/blob/vite/build/ViteSingleCssPlugin.js