We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8ef125 commit bc42a42Copy full SHA for bc42a42
webpack/base.js
@@ -6,6 +6,7 @@ import IsomorphicPlugin from 'webpack-isomorphic-tools/plugin';
6
import { OUTPUT_PATH, ASSET_HOST, RESOLVE_PATHS } from './constants';
7
8
const isDev = process.env.NODE_ENV === 'development';
9
+const isProd = process.env.NODE_ENV === 'production';
10
const isomorphicPlugin = new IsomorphicPlugin(isomorphicConfig).development(isDev);
11
12
export default {
@@ -78,7 +79,7 @@ export default {
78
79
}),
80
new webpack.optimize.CommonsChunkPlugin({
81
name: 'vendor',
- filename: 'vendor.js',
82
+ filename: `vendor${isProd ? '.[hash]' : ''}.js`,
83
minChunks: Infinity
84
})
85
]
0 commit comments