uglify js error unexpected token eof “undefined”

后端 未结 5 2093
时光取名叫无心
时光取名叫无心 2021-01-18 07:36

So I installed npm using npm install uglify-js

I run a command which is:

cat file1.js file2.js .. fileN.js | uglifyjs -o files.min.js
5条回答
  •  南笙
    南笙 (楼主)
    2021-01-18 08:09

    In my case I had forgotten to close some open functions in my javascript. Make sure you have all of your semicolons properly closed too.

提交回复
热议问题