Skip to content

Commit b357034

Browse files
committed
only build use hash
1 parent 31c00e5 commit b357034

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ pages.forEach(function (pathname) {
9292
if (chunks.indexOf(chunk) > -1) {
9393
conf.inject = 'body';
9494
conf.chunks = ['vendors', chunk];
95+
}
96+
if (process.env.NODE_ENV === 'production') {
9597
conf.hash = true;
9698
}
9799
config.plugins.push(new HtmlWebpackPlugin(conf));

0 commit comments

Comments
 (0)