unplugin-kiss-config
v0.1.1
Published
🍙 自动生成figma,masterGo,jsDesign多个平台manifest.json的打包插件
Downloads
2
Maintainers
Readme
unplugin-kiss-config
🍙 自动生成figma,masterGo,jsDesign多个平台manifest.json的打包插件
Option
{
outDir:'string' //自动生成配置文件的目录名称,默认为'plugin'
client:'figma' | 'masterGo' | 'jsDesign' //平台名称,建议通过环境变量来设置 process.env.CLIENT_ENV || 'figma'
}
Install
npm i unplugin-kiss-config
// esbuild.config.js
import { build } from 'esbuild'
import { KissConfigPlugin } from 'unplugin-kiss-config/esbuild'
build({
plugins: [
KissConfigPlugin(/* options */)
],
})
// rollup.config.js
import { KissConfigPlugin } from 'unplugin-kiss-config/rollup'
export default {
plugins: [
KissConfigPlugin(/* options */)
],
}
// vite.config.ts
import { KissConfigPlugin } from 'unplugin-kiss-config/vite'
export default defineConfig({
plugins: [
KissConfigPlugin(/* options */)
],
})
// webpack.config.js
const { KissConfigPlugin } = require('unplugin-kiss-config/webpack')
module.exports = {
plugins: [
KissConfigPlugin(/* options */),
],
}