You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
312 B
10 lines
312 B
class ModifyUniAppWebpackConfigPlugin {
|
|
apply (compiler) {
|
|
compiler.hooks.environment.tap('ModifyUniAppWebpackConfigPlugin', () => {
|
|
// 不注册webpack内置的splitchunksplugin
|
|
delete compiler.options.optimization.splitChunks;
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = ModifyUniAppWebpackConfigPlugin;
|
|
|