Skip to content

Commit 069cf60

Browse files
committed
Create one build chunk only
1 parent a2cb9aa commit 069cf60

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎config/webpack.config.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
22
const path = require('path');
3+
const webpack = require('webpack');
34
const nodeExternals = require('webpack-node-externals');
45

56
module.exports = {
@@ -44,7 +45,10 @@ module.exports = {
4445
path: path.join(process.cwd(), './build'),
4546
sourceMapFilename: '[name].map',
4647
},
47-
plugins: [new FriendlyErrorsWebpackPlugin({ clearConsole: false })],
48+
plugins: [
49+
new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }),
50+
new FriendlyErrorsWebpackPlugin({ clearConsole: false }),
51+
],
4852
resolve: {
4953
alias: { __GRAPHPACK_USER_SRC__: path.resolve(process.cwd(), 'src') },
5054
extensions: ['.wasm', '.js', '.mjs', '.json', '.graphql'],

0 commit comments

Comments
 (0)