Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build的时候报出UglifyJs SyntaxError: Unexpected token: operator (>) #58

Closed
psychokiller666 opened this issue Feb 16, 2017 · 3 comments

Comments

@psychokiller666
Copy link

你好,是这样的。我用了vue-cli https://github.com/vuejs-templates/webpack 构造的项目结构。

并且安装引用了最新的vonic@2.0.0-alpha.13

在npm run dev ,没有任何问题。

在发布的时候npm run build 提示了

ERROR in static/js/vendor.578243cbed6d92063e22.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [./~/vonic/src/services/utils.js:1,0][static/js/vendor.578243cbed6d92063e22.js:8929,37]

很没头绪。

@wangdahoo
Copy link
Owner

你好,是这样的。看这个就行了 https://github.com/wangdahoo/vonic-webpack-demo

@psychokiller666
Copy link
Author

好的,我试试看!

@openroc
Copy link

openroc commented Apr 8, 2018

same problem, when run 'npm build' for vonic 2.0.0-rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants