Skip to content

Commit

Permalink
fix: force cssModules not work (umijs#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycjcl868 authored Nov 26, 2020
1 parent b7f33e8 commit 606a63b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/father-build/src/getRollupConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function(opts: IGetRollupConfigOpts): RollupOptions[] {
// umd 只要 external peerDependencies
const externalPeerDeps = [
...Object.keys(pkg.peerDependencies || {}),
...extraExternals,
...extraExternals,
];

function getPkgNameByid(id) {
Expand Down Expand Up @@ -151,6 +151,8 @@ export default function(opts: IGetRollupConfigOpts): RollupOptions[] {
extract: extractCSS,
inject: injectCSS,
modules,
// modules => all .less will convert into css modules
...(modules ? { autoModules: false } : {}),
minimize: !!minCSS,
use: {
less: {
Expand Down

0 comments on commit 606a63b

Please sign in to comment.