-
Couldn't load subscription status.
- Fork 2
Open
Description
1. 内置
组件工程内置 PWC Rollup 插件,用户可零配置开箱即用。对于 PWC Rollup 插件独有的配置,可在 build.config.ts 中添加 pwc 字段处理:
import { defineConfig } from '@ice/pkg';
export default defineConfig({
pwc: {
//...
}
})2. 外置,需由用户自行引入,类似 vite 中使用 vue 插件:
import { defineConfig } from '@ice/pkg-cli';
import pwc from 'rollup-plugin-pwc'; // 或处理为 build scripts 插件
export default defineConfig({
plugins: [pwc()]
})3. PWC 独立工程二次包装 @ice/pkg
Metadata
Metadata
Assignees
Labels
No labels