remove version of woff2 file
This commit is contained in:
parent
26ecb10611
commit
d34aa1ea83
|
@ -79,6 +79,9 @@ gulp.task('prepare-html', ['prepare-styles', 'prepare-scripts', 'prepare-views']
|
||||||
.pipe($.if('css/*.css', $.replace(/\/\*# sourceMappingURL=.* \*\/$/g, '')))
|
.pipe($.if('css/*.css', $.replace(/\/\*# sourceMappingURL=.* \*\/$/g, '')))
|
||||||
.pipe($.if(['js/moment-with-locales-*.min.js', 'js/plugins.min.js', 'js/aria-ng.min.js'], $.uglify({output: {comments: saveLicense}})))
|
.pipe($.if(['js/moment-with-locales-*.min.js', 'js/plugins.min.js', 'js/aria-ng.min.js'], $.uglify({output: {comments: saveLicense}})))
|
||||||
.pipe($.if(['css/plugins.min.css', 'css/aria-ng.min.css'], $.cssnano({safe: true, autoprefixer: false})))
|
.pipe($.if(['css/plugins.min.css', 'css/aria-ng.min.css'], $.cssnano({safe: true, autoprefixer: false})))
|
||||||
|
.pipe($.replace(/url\((\.\.\/fonts\/[a-zA-Z0-9\-]+\.woff2)(\?[a-zA-Z0-9\-_=.]+)?\)/g, function(match, fileName) {
|
||||||
|
return 'url(' + fileName + ')'; // remove version of woff2 file (woff2 file should be cached via application cache)
|
||||||
|
}))
|
||||||
.pipe($.if(['js/plugins.min.js', 'js/aria-ng.min.js', 'css/plugins.min.css', 'css/aria-ng.min.css'], $.rev()))
|
.pipe($.if(['js/plugins.min.js', 'js/aria-ng.min.js', 'css/plugins.min.css', 'css/aria-ng.min.css'], $.rev()))
|
||||||
.pipe($.if('*.html', $.htmlmin({collapseWhitespace: true})))
|
.pipe($.if('*.html', $.htmlmin({collapseWhitespace: true})))
|
||||||
.pipe($.revReplace())
|
.pipe($.revReplace())
|
||||||
|
|
Reference in a new issue