LoginSignup
0
0

More than 5 years have passed since last update.

yeoman/generator-gulp-webappのgulp buildでコケる

Last updated at Posted at 2017-10-26

はじめに

generator-gulp-webappのgulp buildで下記のエラーが出る。
大概リポジトリから引っ張ってきて修正をかけたあと小一時間悩むのでメモ。

events.js:160
thrower; // Unhandled 'error' event
 ^
Error at new JS_Parse_Error (eval at <anonymous> (PATH\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1534:18)

対象

generator-gulp-webapp(v1.x)でscaffoldされたプロジェクト。v2.x以降(名前がgenerator-webappに変わってるよ!)では多分発生しないと思うよ。
どのバージョンのgeneratorでscaffoldされたか確認するときは、gulpfileの1行目に"generated on YYYY-MM-DD using generator-gulp-webapp x.x.x "のコメントがあるからそこを見てね。

なおしかた

package.json
- "gulp-if": "^1.0.5",
+ "gulp-if": "^2.0.2",

package.jsonの修正後はnpm installを忘れずに。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0