Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-css-injected-by-js

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-css-injected-by-js - npm Package Compare versions

Comparing version 0.0.2 to 1.0.0

2

dist/plugin.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc