Skip to content

Commit

Permalink
chore: export plugin css file
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Oct 11, 2024
1 parent 3fd018f commit 16b6193
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,15 @@ const resetCss = {
plugins: [postcss({ extract: true })],
};

// 单独导出 plugin 相关组件的样式,支持修改类名前缀后因上下文暂时无法获取的情况导致组件样式失效的场景下使用
const pluginCss = {
input: 'src/_common/style/mobile/_plugin.less',
output: {
file: 'dist/plugin.css',
},
plugins: [postcss({ extract: true })],
};

export default [
cssConfig,
esConfig,
Expand All @@ -278,6 +287,7 @@ export default [
cjsConfig,
umdConfig,
umdMinConfig,
pluginCss,
resetCss,
deleteEmptyJSConfig,
];

0 comments on commit 16b6193

Please sign in to comment.