diff --git a/ghost/portal/webpack.config.js b/ghost/portal/webpack.config.js index c1183b8ca1..70fb647286 100644 --- a/ghost/portal/webpack.config.js +++ b/ghost/portal/webpack.config.js @@ -2,6 +2,7 @@ const path = require('path'); const glob = require('glob'); module.exports = { + mode: 'production', entry: { 'bundle.js': glob.sync('build/static/?(js|css)/main.*.?(js|css)').map(f => path.resolve(__dirname, f)) }, @@ -17,5 +18,10 @@ module.exports = { } ] }, - plugins: [] + plugins: [], + performance: { + hints: false, + maxEntrypointSize: 560, + maxAssetSize: 5600 + } }; \ No newline at end of file