windicss-webpack-plugin
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -35,6 +35,7 @@ "use strict"; | ||
} | ||
const virtualModulePath = constants_1.MODULE_ID_VIRTUAL; | ||
// setup alias | ||
compiler.options.resolve.alias = { | ||
...compiler.options.resolve.alias, | ||
[constants_1.MODULE_ID]: upath_1.join(root, constants_1.MODULE_ID_VIRTUAL) | ||
[constants_1.MODULE_ID]: upath_1.resolve(compiler.context, virtualModulePath), | ||
}; | ||
@@ -179,3 +180,3 @@ debug_1.default.plugin('options', this.options); | ||
// Trigger a change to the virtual module | ||
virtualModules.writeModule(constants_1.MODULE_ID_VIRTUAL, | ||
virtualModules.writeModule(virtualModulePath, | ||
// Need to write a dynamic string which will mark the file as modified | ||
@@ -185,3 +186,3 @@ `/* windicss(hmr:${hmrId++}:${filename}) */`); | ||
const virtualModules = new webpack_virtual_modules_1.default({ | ||
[constants_1.MODULE_ID_VIRTUAL]: '/* windicss(boot) */', | ||
[virtualModulePath]: '/* windicss(boot) */', | ||
}); | ||
@@ -188,0 +189,0 @@ virtualModules.apply(compiler); |
{ | ||
"name": "windicss-webpack-plugin", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -10,2 +10,3 @@ <h1 align='center'>windicss-webpack-plugin</h1> | ||
<img src='https://img.shields.io/npm/v/windicss-webpack-plugin?color=0EA5E9&label='> | ||
<img src='https://github.com/windicss/windicss-webpack-plugin/actions/workflows/test.yml/badge.svg' > | ||
</a> | ||
@@ -20,3 +21,3 @@ </p> | ||
- 🍃 Load configurations from `tailwind.config.js` | ||
- 🤝 Framework-agnostic - Vue, React, Svelte and Angular! | ||
- 🤝 Framework-agnostic - Any webpack based project _should_ work: Vue CLi, Nuxt, Next, UmiJS, etc! | ||
- 📄 CSS `@apply` / `@screen` directives transforms (also works for Vue SFC's `<style>`) | ||
@@ -23,0 +24,0 @@ - 🎳 Support Utility Groups - e.g. `bg-gray-200 hover:(bg-gray-100 text-red-300)` |
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
28077
471
188