mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Supress webpack asset size warning
Set threshold for webpack's asset size warning to 2 MB due to Ant Design being large.
This commit is contained in:
1 parent
86b8775df0
commit
dfaf74aac5
1 file changed
+4
@@ -14,6 +14,10 @@ module.exports = (env = {}) => ({
|
||||
filename: "bundle.js",
|
||||
path: path.resolve(__dirname, "static"),
|
||||
},
|
||||
performance: {
|
||||
maxAssetSize: 2**21,
|
||||
maxEntrypointSize: 2**21,
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(),
|
||||
new webpack.DefinePlugin({
|
||||
|
||||
Reference in new issue
Block a user