bsdfzzzy / vue2-hammer

Hammer.js wrapper for Vue 2.x to support some touching operation in the mobile.
MIT License
253 stars 48 forks source link

Cannot build #3

Closed etiennea closed 6 years ago

etiennea commented 6 years ago

For some reason I cannot build my project with this included. Any ideas why?

ERROR in app/js/vendor.8af7bc92f1da0f64bc78.js from UglifyJs
Unexpected token: punc (() [./node_modules/vue2-hammer/index.js:13,0][assests/app/js/vendor.8af7bc92f1da0f64bc78.js:38480,10]
bsdfzzzy commented 6 years ago

@etiennea UglifyJs does not fully support es6. So you can first use babel to compile your project and then uglify it.

etiennea commented 6 years ago

Thanks!

On 29 November 2017 at 01:40, 赵正阳 notifications@github.com wrote:

@etiennea https://github.com/etiennea UglifyJs does not fully support es6. So you can first use babel to compile your project and then uglify it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bsdfzzzy/vue2-hammer/issues/3#issuecomment-347724179, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGRBQMNsQLhtKjYfm_y05UjmuBKIn6qks5s7LYZgaJpZM4QtIQa .