File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ export default () => ({
17
17
app : ( { isDev, isModern } ) => isDev ? `${ isModern ? 'modern-' : '' } [name].js` : '[name].[contenthash].js' ,
18
18
chunk : ( { isDev, isModern } ) => isDev ? `${ isModern ? 'modern-' : '' } [name].js` : '[name].[contenthash].js' ,
19
19
css : ( { isDev } ) => isDev ? '[name].css' : '[contenthash].css' ,
20
- img : ( { isDev } ) => isDev ? '[path][name].[ext]' : 'img/[contenthash:7].[ext]' ,
21
- font : ( { isDev } ) => isDev ? '[path][name].[ext]' : 'fonts/[contenthash:7].[ext]' ,
22
- video : ( { isDev } ) => isDev ? '[path][name].[ext]' : 'videos/[contenthash:7].[ext]'
20
+ img : ( { isDev } ) => isDev ? '[path][name].[ext]' : 'img/[name].[ contenthash:7].[ext]' ,
21
+ font : ( { isDev } ) => isDev ? '[path][name].[ext]' : 'fonts/[name].[ contenthash:7].[ext]' ,
22
+ video : ( { isDev } ) => isDev ? '[path][name].[ext]' : 'videos/[name].[ contenthash:7].[ext]'
23
23
} ,
24
24
loaders : {
25
25
file : { } ,
Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ describe('config: build', () => {
15
15
test ( 'should return prod filenames' , ( ) => {
16
16
const { filenames } = buildConfig ( )
17
17
const env = { isDev : false }
18
- expect ( filenames . app ( env ) ) . toEqual ( '[contenthash].js' )
19
- expect ( filenames . chunk ( env ) ) . toEqual ( '[contenthash].js' )
20
- expect ( filenames . css ( env ) ) . toEqual ( '[contenthash].css' )
21
- expect ( filenames . img ( env ) ) . toEqual ( 'img/[contenthash:7].[ext]' )
22
- expect ( filenames . font ( env ) ) . toEqual ( 'fonts/[contenthash:7].[ext]' )
23
- expect ( filenames . video ( env ) ) . toEqual ( 'videos/[contenthash:7].[ext]' )
18
+ expect ( filenames . app ( env ) ) . toEqual ( '[name].[ contenthash].js' )
19
+ expect ( filenames . chunk ( env ) ) . toEqual ( '[name].[ contenthash].js' )
20
+ expect ( filenames . css ( env ) ) . toEqual ( '[name].[ contenthash].css' )
21
+ expect ( filenames . img ( env ) ) . toEqual ( 'img/[name].[ contenthash:7].[ext]' )
22
+ expect ( filenames . font ( env ) ) . toEqual ( 'fonts/[name].[ contenthash:7].[ext]' )
23
+ expect ( filenames . video ( env ) ) . toEqual ( 'videos/[name].[ contenthash:7].[ext]' )
24
24
} )
25
25
26
26
test ( 'should return modern filenames' , ( ) => {
You can’t perform that action at this time.
0 commit comments