@empjs/plugin-lightningcss 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,6 +8,7 @@ pnpm add @empjs/plugin-lightningcss -D
8
8
  ## 配置 emp-config.js
9
9
  ```js
10
10
  import {defineConfig} from '@empjs/cli'
11
+ import lightningcssPlugin, {postcss} from '@empjs/plugin-lightningcss'
11
12
  const transformUnitFomat = 'vw'
12
13
  export default defineConfig(store => {
13
14
  const visitor = transformUnitFomat==='rem' ? postcss.px_to_rem() : postcss.px_to_viewport({})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empjs/plugin-lightningcss",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "emp v3 lightningcss",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",