caiobiodere / cordova-template-framework7-vue-webpack

Framework7 - Vue - Webpack Cordova Template with Webpack Dev Server and Hot Module Replacement
Apache License 2.0
621 stars 154 forks source link

cordova build browser --release Error #162

Closed cemarta7 closed 5 years ago

cemarta7 commented 5 years ago

cordova build browser --release gives this error

ERROR in 9594cda895669512af1a.main.js from UglifyJs Unexpected token: name «supportsPassive», expected: punc «;» [9594cda895669512af1a.main.js:149346,4]

any ideas?

caiobiodere commented 5 years ago

Are you using the last 2.3.9 template version? Because everything worked as expected here, if not I would suggest starting a new one from scratch to see that working well.

I used exactly this build -> cordova build browser --release

caiobiodere commented 5 years ago

@cemarta7 I've actually found the problem please follow this webpack release file:

https://github.com/caiobiodere/cordova-template-framework7-vue-webpack/blob/master/template_src/config/webpack.release.js

cemarta7 commented 5 years ago

@caiobiodere thanks for the help that actually fix one of my problems and solve my issue by removing a library. Thanks for the quick answer. I will be sure to patreon this project