Skip to content

Commit 6a5f841

Browse files
authored
Merge pull request #4 from dOrgTech/jpk-build-testing
Augusto style changes
2 parents 434e886 + 4c64675 commit 6a5f841

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

webpack.config.babel.js

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ const config = loadConfig()
2121
const { name: appName } = config
2222

2323
module.exports = ({ stats = false } = {}) => ({
24-
devtool: isProduction ? 'source-map' : 'eval-source-map',
24+
devtool: isProduction ? 'none' : 'eval-source-map',
2525
output: {
2626
path: __dirname + '/dist',
27-
chunkFilename: isProduction ? '[name].[chunkhash:4].js' : '[name].js',
28-
filename: isProduction ? '[name].[chunkhash:4].js' : '[name].js',
27+
chunkFilename: '[name].js',
28+
filename: '[name].js',
2929
publicPath: baseUrl,
3030
},
3131
module: {
@@ -152,9 +152,9 @@ module.exports = ({ stats = false } = {}) => ({
152152
new PreloadWebpackPlugin({
153153
rel: 'prefetch',
154154
include: 'allAssets',
155-
fileBlacklist: [/\.map/, /runtime~.+\.js$/],
155+
fileBlacklist: [/\.map/, /\.js$/],
156156
}),
157-
isProduction && new InlineChunkHtmlPlugin(HtmlWebPackPlugin, [/runtime/]),
157+
isProduction && new InlineChunkHtmlPlugin(HtmlWebPackPlugin, []),
158158
new webpack.EnvironmentPlugin({
159159
NODE_ENV: 'development',
160160
BASE_URL: baseUrl,
@@ -179,13 +179,4 @@ module.exports = ({ stats = false } = {}) => ({
179179
CONFIG: JSON.stringify(config),
180180
}),
181181
].filter(Boolean),
182-
optimization: {
183-
splitChunks: {
184-
chunks: 'all',
185-
minSize: 20000,
186-
maxAsyncRequests: 10,
187-
maxSize: 1000000,
188-
},
189-
runtimeChunk: true,
190-
},
191182
})

0 commit comments

Comments
 (0)