@@ -75,7 +75,9 @@ module.exports = (src, dest, preview) => () => {
75
75
. pipe ( uglify ( { output : { comments : / ^ ! / } } ) )
76
76
// NOTE concat already uses stat from newest combined file
77
77
. pipe ( concat ( 'js/site.js' ) )
78
- . pipe ( gulpif ( ! preview , hash ( { template : '<%= name %>-<%= hash %><%= ext %>' } ) ) )
78
+ . pipe ( gulpif (
79
+ ! preview ,
80
+ hash ( { template : '<%= name %>-<%= hash %><%= ext %>' , hashLength : 10 , version : 'prod-35' } ) ) )
79
81
. pipe ( vfs . dest ( dest ) )
80
82
. pipe ( gulpif ( ! preview , hash . manifest ( 'assets-manifest.json' , { append : true } ) ) )
81
83
. pipe ( vfs . dest ( dest ) ) ,
@@ -85,14 +87,18 @@ module.exports = (src, dest, preview) => () => {
85
87
// .pipe(uglify({ output: { comments: /^! / } }))
86
88
. pipe ( map ( ( file ) => file . relative === 'js/vendor/floatingui.js' )
87
89
? through ( ) : uglify ( { output : { comments : / ^ ! / } } ) )
88
- . pipe ( gulpif ( ! preview , hash ( { template : '<%= name %>-<%= hash %><%= ext %>' } ) ) )
90
+ . pipe ( gulpif (
91
+ ! preview ,
92
+ hash ( { template : '<%= name %>-<%= hash %><%= ext %>' , hashLength : 10 , version : 'prod-35' } ) ) )
89
93
. pipe ( vfs . dest ( dest ) )
90
94
. pipe ( gulpif ( ! preview , hash . manifest ( 'assets-manifest.json' , { append : true } ) ) )
91
95
. pipe ( vfs . dest ( dest ) ) ,
92
96
vfs
93
97
. src ( 'js/vendor/*.min.js' , opts )
94
98
. pipe ( map ( ( file , enc , next ) => next ( null , Object . assign ( file , { extname : '' } , { extname : '.js' } ) ) ) )
95
- . pipe ( gulpif ( ! preview , hash ( { template : '<%= name %>-<%= hash %><%= ext %>' } ) ) )
99
+ . pipe ( gulpif (
100
+ ! preview ,
101
+ hash ( { template : '<%= name %>-<%= hash %><%= ext %>' , hashLength : 10 , version : 'prod-35' } ) ) )
96
102
. pipe ( vfs . dest ( dest ) )
97
103
. pipe ( gulpif ( ! preview , hash . manifest ( 'assets-manifest.json' , { append : true } ) ) )
98
104
. pipe ( vfs . dest ( dest ) ) ,
@@ -102,7 +108,9 @@ module.exports = (src, dest, preview) => () => {
102
108
vfs
103
109
. src ( [ 'css/site.css' , 'css/vendor/*.css' ] , { ...opts , sourcemaps } )
104
110
. pipe ( postcss ( ( file ) => ( { plugins : postcssPlugins , options : { file } } ) ) )
105
- . pipe ( gulpif ( ! preview , hash ( { template : '<%= name %>-<%= hash %><%= ext %>' } ) ) )
111
+ . pipe ( gulpif (
112
+ ! preview ,
113
+ hash ( { template : '<%= name %>-<%= hash %><%= ext %>' , hashLength : 10 , version : 'prod-35' } ) ) )
106
114
. pipe ( vfs . dest ( dest ) )
107
115
. pipe ( gulpif ( ! preview , hash . manifest ( 'assets-manifest.json' , { append : true } ) ) )
108
116
. pipe ( vfs . dest ( dest ) ) ,
0 commit comments