diff --git a/packages/extension/package.json b/packages/extension/package.json index fd2222ccb..244f17db4 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -21,7 +21,7 @@ "build:esm": "tsc --module esnext --target es5 --outDir ./es", "build:cjs": "tsc --module commonjs --target es5 --outDir ./lib", "build:umd": "rollup -c ./rollup.config.js --bundleConfigAsCjs", - "build:dev": "rss", + "build:dev": "run-p -s build:cjs build:esm", "build:watch": "rss", "build:watch:esm": "rss", "build:watch:cjs": "rss", diff --git a/packages/extension/rollup.config.js b/packages/extension/rollup.config.js index 16a91ccfa..91e439394 100644 --- a/packages/extension/rollup.config.js +++ b/packages/extension/rollup.config.js @@ -7,9 +7,23 @@ import { rollupConfig } from '../../rollup.config' export default [ { input: 'src/index.less', - output: { - file: 'dist/index.css', - }, + output: [ + { + file: 'dist/index.css', + }, + { + file: 'lib/index.css', + }, + { + file: 'lib/style/index.css', + }, + { + file: 'es/index.css', + }, + { + file: 'es/style/index.css', + }, + ], plugins: [ postcss({ plugins: [