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

Commit

Permalink
fix(webpack_config/server): remove unused aliases, different chunkFil…
Browse files Browse the repository at this point in the history
…ename in prod/dev

fix(webpack_config/server): remove unused aliases, different
chunkFilename in prod/dev
  • Loading branch information
Metnew committed Nov 6, 2017
1 parent 17060b7 commit 9ce7a7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webpack_config/server/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const definePluginArgs = {
}

const devtool = isProduction ? 'cheap-source-map' : 'eval'
const chunkFilename = isProduction ? '[name].[chunkhash:6].js' : '[name].js'
const entry = isProduction
? path.join(config.srcPath, './server')
: path.join(config.srcPath, './server/server')
Expand All @@ -40,6 +41,7 @@ const baseWebpackConfig = {
output: {
path: path.join(config.distPath, './server'),
filename: 'index.js',
chunkFilename,
libraryTarget: 'commonjs2'
},
externals: nodeModules,
Expand All @@ -51,8 +53,6 @@ const baseWebpackConfig = {
modules: isomorphicWebpackConfig.resolve.modules,
alias: {
...isomorphicWebpackConfig.resolve.alias,
'webpack-assets': `${CLIENT_DIST_PATH}/webpack-assets.json`,
'favicons-assets': `${CLIENT_DIST_PATH}/favicons-stats.json`,
locals: `${config.rootPath}/locals`
}
},
Expand All @@ -79,8 +79,8 @@ const baseWebpackConfig = {
{
loader: 'url-loader',
options: {
limit: 25000,
name: 'images/[name].[hash:8].[ext]'
limit: 4096,
name: 'images/[name].[hash:6].[ext]'
}
},
'img-loader'
Expand Down

0 comments on commit 9ce7a7a

Please sign in to comment.