gocanto/vuemit

npm run production: Unexpected token: name (Vuemit)

Closed this issue · 6 comments

Running npm run production in current Laravel 5.5 gives the following errror.

@ ./resources/assets/js/app.js 59:35-72
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

error

/js/app.js from UglifyJs
Unexpected token: name (Vuemit) [./~/vuemit/src/Vuemit.js:11,0][/js/app.js:54904,6]

In my app.js I have window.Vuemit = require('vuemit'); but fails with the above error.

@ctf0 have you seen this error? I can not reproduce it

Will check it later. Thanks :)

ctf0 commented

@gocanto we should update the readme about installing the presets and enabling them in the webpack config.

Yeah, we can do that @ctf0

are you sending the PR, otherwise I will try to do it this coming weekend?

ctf0 commented

@gocanto for laravel just add a link to the article , but for node am not sure how the webpack config would be.