Webpack: Do not clean webpack output on every rebuild (#23157)

This commit is contained in:
Torkel Ödegaard 2020-03-28 06:40:29 +01:00 committed by GitHub
parent b6c1a063be
commit f2337c9855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,9 @@ module.exports = (env = {}) =>
},
plugins: [
new CleanWebpackPlugin(),
new CleanWebpackPlugin({
cleanStaleWebpackAssets: false,
}),
env.noTsCheck
? new webpack.DefinePlugin({}) // bogus plugin to satisfy webpack API
: new ForkTsCheckerWebpackPlugin({