@empjs/plugin-postcss 3.0.0-rc.0 → 3.0.0-rc.1
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/README.md +1 -10
- package/dist/plugins.js +2 -2
- package/package.json +5 -12
package/README.md
CHANGED
|
@@ -4,13 +4,4 @@
|
|
|
4
4
|
pnpm add @empjs/plugin-postcss -D
|
|
5
5
|
```
|
|
6
6
|
## 使用
|
|
7
|
-
|
|
8
|
-
import pluginPostCss from '@empjs/plugin-postcss'
|
|
9
|
-
import {defineConfig} from '@empjs/cli'
|
|
10
|
-
export default defineConfig(() => {
|
|
11
|
-
return {
|
|
12
|
-
plugins: [pluginPostCss()],
|
|
13
|
-
}
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
```
|
|
7
|
+
[使用详情](https://empjs.dev/plugin/tool/postcss.html)
|
package/dist/plugins.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url';
|
|
2
|
-
import { dirname } from 'node:path';
|
|
3
1
|
import Module from 'node:module';
|
|
2
|
+
import { dirname } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
4
|
export const __filename = fileURLToPath(import.meta.url);
|
|
5
5
|
export const __dirname = dirname(__filename);
|
|
6
6
|
export const require = Module.createRequire(import.meta.url);
|
package/package.json
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empjs/plugin-postcss",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.1",
|
|
4
4
|
"description": "emp postcss plugin",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"files": [
|
|
8
|
-
|
|
9
|
-
],
|
|
10
|
-
"maintainers": [
|
|
11
|
-
"xuhongbin",
|
|
12
|
-
"ckken"
|
|
13
|
-
],
|
|
7
|
+
"files": ["dist"],
|
|
8
|
+
"maintainers": ["xuhongbin", "ckken"],
|
|
14
9
|
"repository": {
|
|
15
10
|
"type": "git",
|
|
16
11
|
"url": "git+https://github.com/empjs/emp.git",
|
|
@@ -19,9 +14,7 @@
|
|
|
19
14
|
"publishConfig": {
|
|
20
15
|
"access": "public"
|
|
21
16
|
},
|
|
22
|
-
"keywords": [
|
|
23
|
-
"postcss"
|
|
24
|
-
],
|
|
17
|
+
"keywords": ["postcss"],
|
|
25
18
|
"main": "dist/index.js",
|
|
26
19
|
"types": "dist/index.d.ts",
|
|
27
20
|
"exports": {
|
|
@@ -51,4 +44,4 @@
|
|
|
51
44
|
"@empjs/postcss-px-to-viewport": "^1.0.0",
|
|
52
45
|
"postcss-pxtorem": "^6.1.0"
|
|
53
46
|
}
|
|
54
|
-
}
|
|
47
|
+
}
|