Skip to content

Commit

Permalink
fix(gulpfile): [email protected] need "dot:true" option
Browse files Browse the repository at this point in the history
when gulp build, [email protected] will miss file path start with dot like ".tmp/app/app.js", that cause some files not uglify or rev. add option "dot:true" resolve the problem

fixes #2146, closes #2151
  • Loading branch information
jacinchan authored and Awk34 committed Sep 13, 2016
1 parent 1e06e6d commit 1fbf24b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/app/gulpfile.babel(gulp).js
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,10 @@ gulp.task('clean:dist', () => del([`${paths.dist}/!(.git*|.openshift|Procfile)**
gulp.task('build:client', ['styles', 'html', 'constant', 'build:images'], () => {
var manifest = gulp.src(`${paths.dist}/${clientPath}/assets/rev-manifest.json`);
var appFilter = plugins.filter('**/app.js', {restore: true});
var jsFilter = plugins.filter('**/*.js', {restore: true});
var cssFilter = plugins.filter('**/*.css', {restore: true});
var htmlBlock = plugins.filter(['**/*.!(html)'], {restore: true});
var appFilter = plugins.filter('**/app.js', {restore: true, dot: true});
var jsFilter = plugins.filter('**/*.js', {restore: true, dot: true});
var cssFilter = plugins.filter('**/*.css', {restore: true, dot: true});
var htmlBlock = plugins.filter(['**/*.!(html)'], {restore: true, dot: true});
return gulp.src(paths.client.mainView)
.pipe(plugins.useref())
Expand Down

0 comments on commit 1fbf24b

Please sign in to comment.