Skip to content

Commit

Permalink
BREAKING CHANGE: Upgrate dependencies and tools to lastest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeSimoes committed Oct 17, 2023
1 parent 9b4ea84 commit b9d190a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const templates = require('./templates.config');
const stats = require('./stats.config');
const cache = require('./cache.config');
const devServer = require('./devserver.config');
const performance = require('./performance.config');

const modules = general.modules;

Expand All @@ -32,5 +33,6 @@ module.exports = {
templates,
stats,
cache,
devServer
devServer,
performance
};
4 changes: 4 additions & 0 deletions config/performance.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
maxAssetSize: 100000,
maxEntrypointSize: 350000,
};
3 changes: 2 additions & 1 deletion tasks/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = (config) => {
log(__filename, 'Webpack transpile running...', '', 'info');

// extract from flatten configs to webpack
const { output, plugins, optimization, resolve, externals, stats } = config;
const { output, plugins, optimization, resolve, externals, stats, performance } = config;
const { mode, watch, devtool } = config.general;

if (entry && Object.keys(entry).length > 0) {
Expand All @@ -36,6 +36,7 @@ module.exports = (config) => {
optimization,
devtool,
resolve,
performance,
stats,
...externals && { externals }
}, (err, stats) => {
Expand Down

0 comments on commit b9d190a

Please sign in to comment.