Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
feat(cli): 支持 css modules 更多配置
Browse files Browse the repository at this point in the history
  • Loading branch information
linjiajian999 authored and Darmody committed Mar 10, 2020
1 parent 20c03ab commit f9838dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/remax-cli/src/build/rollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ export default function rollupConfig(
'app' + API.getMeta().style
),
...postcssConfig.options,
modules: cssModuleConfig,
modules: {
...cssModuleConfig,
...postcssConfig.options.modules,
},
plugins: [options.pxToRpx && pxToUnits(), postcssUrl(options)]
.filter(Boolean)
.concat(postcssConfig.plugins),
Expand Down

0 comments on commit f9838dc

Please sign in to comment.