@spcsn/taro-plugin-generator
v0.1.0
Published
Taro 生成器插件
Readme
@spcsn/taro-plugin-generator
使用
// config/index.ts
export default defineConfig<'webpack5'>(async (merge, {command, mode}) => {
const baseConfig: UserConfigExport<'webpack5'> = {
...
plugins: [
...,
"@spcsn/taro-plugin-generator" // 添加插件
],
...
}
...
}{
"scripts": {
...
"new": "taro new"
}
}执行命令,选择需要开启的功能
> pnpm new
✔ 获取 taro 全局配置成功
? 启用可选功能
❯ 启用「Tailwind CSS」支持
启用「编译为 ES5」