Skip to content

Instantly share code, notes, and snippets.

@dman777
Created August 9, 2017 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dman777/82e9af227b7caf903e4b1ed5ab5eb272 to your computer and use it in GitHub Desktop.
Save dman777/82e9af227b7caf903e4b1ed5ab5eb272 to your computer and use it in GitHub Desktop.
const buildScriptFile = (appName, gulp, plugins, buildFiles)
=> gulp.src(buildFiles)
.pipe(plugins.sourcemaps.init())
.pipe(babel({
presets: ['env']
})
.pipe(plugins.concat(`${appName}.min.js`))
//.pipe(plugins.uglify())
.pipe(plugins.size({
showFiles: true,
}))
.pipe(plugins.sourcemaps.write(''))
.pipe(gulp.dest('Scripts'));
---------------------------------------------------
=> gulp.src(buildFiles)
^^
SyntaxError: Unexpected token =>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment