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

windicss-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windicss-webpack-plugin - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

7

dist/plugin.js

@@ -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)`

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