hustxiaoc / gulp-minify

minify js plugin for gulp
BSD 2-Clause "Simplified" License
65 stars 20 forks source link

Set min node version to 6.0.0 to avoid parsing error #51

Closed jbinard closed 6 years ago

jbinard commented 6 years ago

The last version of gulp-minify (3.1.0) uses es6 default function parameters. This feature is not available in node before version 6.0.0. If you use gulp-minify with a lower version, you will get the following error:

function parseExt(ext, byDefault = ".js") { ^

SyntaxError: Unexpected token =