vite-plugin-css-injected-by-js
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -75,2 +75,5 @@ "use strict"; | ||
else { | ||
const allCssAssets = Object.keys(bundle).filter((i) => bundle[i].type == 'asset' && | ||
bundle[i].fileName.endsWith('.css')); | ||
unusedCssAssets = allCssAssets.filter(cssAsset => !cssAssets.includes(cssAsset)); | ||
yield (0, utils_js_1.globalCssInjection)(bundle, cssAssets, buildCssCode, jsAssetsFilterFunction, topExecutionPriorityFlag); | ||
@@ -77,0 +80,0 @@ } |
@@ -63,2 +63,5 @@ import { buildCSSInjectionCode, buildJsCssMap, clearImportedCssViteMetadataFromBundle, globalCssInjection, isCSSRequest, relativeCssInjection, removeLinkStyleSheets, resolveInjectionCode, warnLog, } from './utils.js'; | ||
else { | ||
const allCssAssets = Object.keys(bundle).filter((i) => bundle[i].type == 'asset' && | ||
bundle[i].fileName.endsWith('.css')); | ||
unusedCssAssets = allCssAssets.filter(cssAsset => !cssAssets.includes(cssAsset)); | ||
await globalCssInjection(bundle, cssAssets, buildCssCode, jsAssetsFilterFunction, topExecutionPriorityFlag); | ||
@@ -65,0 +68,0 @@ } |
{ | ||
"name": "vite-plugin-css-injected-by-js", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"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/cjs/index.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
63220
895