importcssInjectedByJsPluginfrom'vite-plugin-css-injected-by-js'exportdefault{plugins:[cssInjectedByJsPlugin({dev:{enableDev:true,removeStyleCodeFunction:functionremoveStyleCode(id:string){// The 'id' corresponds to the value of the 'data-vite-dev-id' attribute found on the style element. This...
To activate the plugin in the development environment as well, you need to configure a dev object and set the enableDev parameter to true. Here's an example: importcssInjectedByJsPluginfrom'vite-plugin-css-injected-by-js'exportdefault{plugins:[cssInjectedByJsPlugin({dev:{enableDev:true,remove...
Bumps [vite-plugin-css-injected-by-js](https://github.com/marco-prontera/vite-plugin-css-injected-by-js) from 3.5.0 to 3.5.1. - [Release notes](https://github.com/marco-prontera/vite-plugin-css-injected-by-js/releases) - [Commits](marco-prontera/vite-plugin-css-injected-by-js@v3.5...
replaceAll is available from Nodejs 15+ But the regex here works also with replace which also guarantees nodejs 14 compatibility
A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file. - marco-prontera/vite-plugin-css-injected-by-js
To activate the plugin in the development environment as well, you need to configure a dev object and set the enableDev parameter to true. Here's an example: importcssInjectedByJsPluginfrom'vite-plugin-css-injected-by-js'exportdefault{plugins:[cssInjectedByJsPlugin({dev:{enableDev:true,remove...