mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +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",
|
filename: "bundle.js",
|
||||||
path: path.resolve(__dirname, "static"),
|
path: path.resolve(__dirname, "static"),
|
||||||
},
|
},
|
||||||
|
performance: {
|
||||||
|
maxAssetSize: 2**21,
|
||||||
|
maxEntrypointSize: 2**21,
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(),
|
new CleanWebpackPlugin(),
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
|
|||||||
Reference in new issue
Block a user