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 打包时报错了 #2

Open
crossui opened this issue Oct 17, 2017 · 1 comment
Open

npm run build 打包时报错了 #2

crossui opened this issue Oct 17, 2017 · 1 comment

Comments

@crossui
Copy link

crossui commented Oct 17, 2017

已经安装jsx插件, 在run 运行时是正常的,可一旦打包就报错了,错误信息:

ERROR in static/js/vendor.01d86568a7d326df7567.js from UglifyJs
Unexpected token: name (scrollBarWidth) [./node_modules/easyscroll/src/utils/scrollbar-width.js:6,0][static/js/vendor.01d86568a7d326df7567.js:46573,5]

Build failed with errors.

@ruiyong-lee
Copy link

ruiyong-lee commented Feb 8, 2018

image

这里配置一下就可以了,没有转es5直接压缩代码会有错,话说作者不经常上来看issues?

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

2 participants