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...
vite-plugin-css-injected-by-js/package.json Version: 1.8 kBJSONView Raw 1{ 2"name":"vite-plugin-css-injected-by-js", 3"version":"3.4.0", 4"description":"A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file.", ...
1 # vite-plugin-css-injected-by-js 🤯 2 3 A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file. 4 5 The plugin can be configured to execute the CSS injection before or after your app code, and you can also provid...
A Vite plugin that takes the CSS and adds it to the page through the JS. For those who want a single JS file. - Pulse · marco-prontera/vite-plugin-css-injected-by-js
vite-plugin-css-injected-by-js/LICENSE Version: 1.07 kBPlain TextView Raw 1 MIT License 2 3 Copyright (c) 2023 Marco Prontera 4 5 Permission is hereby granted, free of charge, to any person obtaining a copy 6 of this software and associated documentation files (the "Software"),...
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...