File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ module.exports = {
2828 entry : path . join ( paths . appSrc , 'index' ) ,
2929 output : {
3030 path : paths . appBuild ,
31- filename : '[name].[chunkhash].js' ,
32- chunkFilename : '[name].[chunkhash].chunk.js' ,
31+ filename : '[name].[chunkhash:8 ].js' ,
32+ chunkFilename : '[name].[chunkhash:8 ].chunk.js' ,
3333 publicPath : publicPath
3434 } ,
3535 resolve : {
@@ -71,6 +71,9 @@ module.exports = {
7171 test : / \. ( j p g | p n g | g i f | e o t | s v g | t t f | w o f f | w o f f 2 ) $ / ,
7272 include : [ paths . appSrc , paths . appNodeModules ] ,
7373 loader : 'file' ,
74+ query : {
75+ name : '[name].[hash:8].[ext]'
76+ }
7477 } ,
7578 {
7679 test : / \. ( m p 4 | w e b m ) $ / ,
@@ -122,6 +125,6 @@ module.exports = {
122125 screw_ie8 : true
123126 }
124127 } ) ,
125- new ExtractTextPlugin ( '[name].[contenthash].css' )
128+ new ExtractTextPlugin ( '[name].[contenthash:8 ].css' )
126129 ]
127130} ;
You can’t perform that action at this time.
0 commit comments