@unocss/webpack 0.32.1 → 0.32.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +4 -0
- package/dist/index.cjs +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +4 -5
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
|
|
3
|
+
Copyright (c) 2021-PRESENT Anthony Fu <https://github.com/antfu>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -4,10 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
6
|
const WebpackSources = require('webpack-sources');
|
|
7
|
-
require('
|
|
7
|
+
const core = require('@unocss/core');
|
|
8
8
|
const pluginutils = require('@rollup/pluginutils');
|
|
9
9
|
const config = require('@unocss/config');
|
|
10
|
-
const core = require('@unocss/core');
|
|
11
10
|
|
|
12
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
13
12
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { createUnplugin } from 'unplugin';
|
|
2
2
|
import WebpackSources from 'webpack-sources';
|
|
3
|
-
import '
|
|
3
|
+
import { createGenerator, BetterMap } from '@unocss/core';
|
|
4
4
|
import { createFilter } from '@rollup/pluginutils';
|
|
5
5
|
import { loadConfig } from '@unocss/config';
|
|
6
|
-
import { createGenerator, BetterMap } from '@unocss/core';
|
|
7
6
|
|
|
8
7
|
function getPath(id) {
|
|
9
8
|
return id.replace(/\?.*$/, "");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/webpack",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.9",
|
|
4
4
|
"description": "The Webpack plugin for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@rollup/pluginutils": "^4.2.1",
|
|
40
|
-
"@unocss/config": "0.32.
|
|
41
|
-
"@unocss/core": "0.32.
|
|
40
|
+
"@unocss/config": "0.32.9",
|
|
41
|
+
"@unocss/core": "0.32.9",
|
|
42
42
|
"unplugin": "^0.6.2",
|
|
43
43
|
"webpack-sources": "^3.2.3"
|
|
44
44
|
},
|
|
@@ -50,6 +50,5 @@
|
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "unbuild",
|
|
52
52
|
"stub": "unbuild --stub"
|
|
53
|
-
}
|
|
54
|
-
"readme": "# @unocss/webpack\n\nThe Webpack plugin for UnoCSS.\n\n> This plugin does not come with any default presets.\n\nCurrently, this plugin only supports [the `global` mode](https://github.com/unocss/unocss/blob/main/packages/vite/src/types.ts#L11-L21)\n\n## Installation\n\n```bash\nnpm i -D @unocss/webpack\n```\n\n```ts\n// webpack.config.js\nconst UnoCSS = require('@unocss/webpack').default\n\nmodule.exports = {\n plugins: [\n UnoCSS({ /* options */ }),\n ],\n}\n```\n\nOr you can have the config file in `unocss.config.js` or `unocss.config.ts`.\n"
|
|
53
|
+
}
|
|
55
54
|
}
|