Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-deriv committed Jan 12, 2024
1 parent 6f5f864 commit de2b038
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,31 +404,6 @@ exports.onCreateWebpackConfig = ({ actions, loaders, getConfig }, { ...options }
actions.setWebpackConfig({
devtool: false,
mode: isProduction ? 'production' : 'development',
optimization: {
minimize: isProduction,
minimizer: [new TerserPlugin()],
splitChunks: {
chunks: 'all',
minSize: 30000,
maxSize: 0,
minChunks: 1,
maxAsyncRequests: 5,
maxInitialRequests: 3,
automaticNameDelimiter: '~',
name: true,
cacheGroups: {
vendors: {
test: /[\\/]node_modules[\\/]/,
priority: -10,
},
default: {
minChunks: 2,
priority: -20,
reuseExistingChunk: true,
},
},
},
},
plugins: [new StylelintPlugin({ ...style_lint_options, ...options })],
resolve: {
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
Expand Down

0 comments on commit de2b038

Please sign in to comment.