Skip to content

Commit 237e3c2

Browse files
committed
Merge pull request #1472 from david-mohr/canary
fix(gulp): add babel runtime options, fix a path
2 parents 16d1664 + 6f4d3b0 commit 237e3c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/templates/gulpfile.babel(gulp).js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ let styles = lazypipe()
120120

121121
let transpile = lazypipe()
122122
.pipe(plugins.sourcemaps.init)<% if(filters.babel) { %>
123-
.pipe(plugins.babel)<% } else { %>
123+
.pipe(plugins.babel, {
124+
optional: ['es7.classProperties']
125+
})<% } else { %>
124126
.pipe(plugins.coffee, {bare: true})<% } %>
125127
.pipe(plugins.sourcemaps.write, '.');<% } %>
126128

@@ -392,7 +394,7 @@ gulp.task('build:client', ['transpile:client', 'styles', 'html'], () => {
392394

393395
let assets = plugins.useref.assets({searchPath: ['client', '.tmp']});
394396

395-
return gulp.src(paths.mainView)<% if(filters.jade) { %>
397+
return gulp.src(paths.client.mainView)<% if(filters.jade) { %>
396398
.pipe(plugins.jade({pretty: true}))<% } %>
397399
.pipe(assets)
398400
.pipe(appFilter)

0 commit comments

Comments
 (0)