支持自定义的rules

This commit is contained in:
pqcqaq 2024-12-09 23:09:43 +08:00
parent c347120c8b
commit 4bfafa31d3
1 changed files with 3 additions and 0 deletions

View File

@ -800,6 +800,9 @@ module.exports = function (webpackEnv) {
// Make sure to add the new loader(s) before the "file" loader.
],
},
...(projectConfiguration &&
projectConfiguration.module &&
projectConfiguration.module.rules ? projectConfiguration.module.rules : []),
].filter(Boolean),
},
plugins: [