Skip to content

Commit

Permalink
adds the extension to webpack.config setup for production (#1172)
Browse files Browse the repository at this point in the history
Co-authored-by: Aman Singh <saintsoldierx@gmail.com>
  • Loading branch information
gurjit03 and saintsoldierx committed Jul 14, 2020
1 parent 626198b commit 9f2a2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Expand Up @@ -56,8 +56,8 @@ module.exports = {
},
output: {
path: path.resolve(__dirname, 'public/assets', 'js'),
chunkFilename: PRODUCTION ? 'chunks/[name]-[hash]' : 'chunks/[name].js',
filename: PRODUCTION ? '[name]-[hash]' : '[name].js',
chunkFilename: PRODUCTION ? 'chunks/[name]-[hash].js' : 'chunks/[name].js',
filename: PRODUCTION ? '[name]-[hash].js' : '[name].js',
publicPath: '/assets/js/',
},
devtool: PRODUCTION ? undefined : 'inline-source-map',
Expand Down

0 comments on commit 9f2a2bc

Please sign in to comment.