vite-plugin-css-injected-by-js
Advanced tools
Comparing version 0.0.2 to 1.0.0
@@ -29,3 +29,3 @@ "use strict"; | ||
//IIFE http://benalman.com/news/2010/11/immediately-invoked-function-expression/ | ||
chunk.code += `(function(){ try {var elementStyle = document.createElement('style'); elementStyle.innerText = \`${styleCode}\`; document.head.appendChild(elementStyle);} catch(e) {console.error(e, 'vite-plugin-css-injected-by-js: can\'t add the style.')} })()`; | ||
chunk.code += `(function(){ try {var elementStyle = document.createElement('style'); elementStyle.innerText = \`${styleCode}\`; document.head.appendChild(elementStyle);} catch(e) {console.error(e, 'vite-plugin-css-injected-by-js: can't add the style.');} })()`; | ||
break; | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "vite-plugin-css-injected-by-js", | ||
"version": "0.0.2", | ||
"version": "1.0.0", | ||
"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.", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0