Skip to content

Commit

Permalink
fix(extension): 修复lib/style/index.css引用报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liuziqi authored and boyongjiong committed Sep 3, 2024
1 parent f663f4a commit 32b233c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
20 changes: 17 additions & 3 deletions packages/extension/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 32b233c

Please sign in to comment.