@ -67,6 +67,11 @@ function loader() {
entryOnly: true,
}).apply(childCompiler);
// 去除源码中的less css引用
new webpack.IgnorePlugin({
resourceRegExp: /\.(css|less)$/,
const subCache = `subcache ${__dirname} ${workerEntry}`;
childCompiler.hooks.compilation.tap(WorkerLoaderName, compilation => {
if (compilation.cache) {