File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -2397,7 +2397,7 @@ module.exports = {
23972397 // and be versioned
23982398 config . copyFiles ( {
23992399 from : './copy' ,
2400- to : './[path][name]-[hash].[ext]' ,
2400+ to : './[path][name]-[hash:8 ].[ext]' ,
24012401 pattern : / \. ( c s s | j s ) $ / ,
24022402 } ) ;
24032403
@@ -2427,21 +2427,20 @@ module.exports = {
24272427 } ) ;
24282428
24292429 testSetup . runWebpack ( config , ( webpackAssert ) => {
2430- expect ( config . outputPath ) . to . be . a . directory ( )
2431- . with . files ( [
2432- 'entrypoints.json' ,
2433- 'runtime.js' ,
2434- 'main.js' ,
2435- 'manifest.json' ,
2430+ webpackAssert . assertDirectoryContents ( [
2431+ 'entrypoints.json' ,
2432+ 'runtime.js' ,
2433+ 'main.js' ,
2434+ 'manifest.json' ,
24362435
2437- // 1st rule
2438- 'foo-5d76c098640df1edecc7ca66ee62b1ea .css' ,
2439- 'foo-5d76c098640df1edecc7ca66ee62b1ea .js' ,
2436+ // 1st rule
2437+ 'foo-[hash:8] .css' ,
2438+ 'foo-[hash:8] .js' ,
24402439
2441- // 2nd rule
2442- 'foo.json' ,
2443- 'foo.png' ,
2444- ] ) ;
2440+ // 2nd rule
2441+ 'foo.json' ,
2442+ 'foo.png' ,
2443+ ] ) ;
24452444
24462445 done ( ) ;
24472446 } ) ;
You can’t perform that action at this time.
0 commit comments