windicss-webpack-plugin
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -6,3 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../constants"); | ||
const debug_1 = __importDefault(require("../debug")); | ||
const upath_1 = require("upath"); | ||
function TransformCss(source) { | ||
@@ -17,2 +19,4 @@ if (!this._compiler) { | ||
} | ||
// cache file changes to invalidate the virtual module | ||
this.addDependency(upath_1.resolve(this.rootContext, constants_1.MODULE_ID_VIRTUAL)); | ||
// only transform css if there is an @apply | ||
@@ -19,0 +23,0 @@ const hasWindiApply = source.indexOf('@apply') > -1; |
@@ -6,3 +6,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constants_1 = require("../constants"); | ||
const debug_1 = __importDefault(require("../debug")); | ||
const upath_1 = require("upath"); | ||
const _ = require('lodash'); | ||
@@ -25,2 +27,4 @@ const loaderUtils = require('loader-utils'); | ||
} | ||
// cache file changes to invalidate the virtual module | ||
this.addDependency(upath_1.resolve(this.rootContext, constants_1.MODULE_ID_VIRTUAL)); | ||
const hasHtmlWebpackPlugin = this.loaders.filter(loader => { | ||
@@ -27,0 +31,0 @@ // loader name as unresolved module |
@@ -56,2 +56,4 @@ "use strict"; | ||
for (const content of contents) { | ||
// add file as a dependency to invalidate hmr caches | ||
this.addDependency(content.id); | ||
try { | ||
@@ -58,0 +60,0 @@ service.extractFile(content.data, content.id, service.options.transformGroups); |
{ | ||
"name": "windicss-webpack-plugin", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"license": "MIT", | ||
@@ -65,6 +65,13 @@ "author": { | ||
"jest": "^26.6.3", | ||
"less": "^4.1.1", | ||
"less-loader": "^7", | ||
"lint-staged": "^10.5.4", | ||
"memfs": "^3.2.0", | ||
"postcss-loader": "^5.2.0", | ||
"release-it": "^14.6.1", | ||
"sass": "^1.32.12", | ||
"sass-loader": "^10", | ||
"schema-utils": "^3.0.0", | ||
"stylus": "^0.54.8", | ||
"stylus-loader": "^3", | ||
"ts-jest": "^26.5.0", | ||
@@ -71,0 +78,0 @@ "typescript": "^4.1.3", |
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
29806
504
33