epicmaxco / epic-spinners

Easy to use css spinners collection with Vue.js integration
https://epic-spinners.epicmax.co
3.84k stars 357 forks source link

Unable to include library in my application #21

Closed shadyabhi closed 5 years ago

shadyabhi commented 5 years ago
[npm 11/02/18 6:04:09]
[npm 11/02/18 6:04:09] ERROR in static/js/0.js from UglifyJs
[npm 11/02/18 6:04:09] Unexpected token: punc (() [static/js/0.js:49,6]
[npm 11/02/18 6:04:09]

I'm guessing that it's related to babel and how I've configured my webpack. What debugging info do we need to debug this? I would prefer not to upgrade webpack to fix this.

➤ grep webpack package.json
    "copy-webpack-plugin": "^4.0.1",
    "extract-text-webpack-plugin": "^2.0.0",
    "friendly-errors-webpack-plugin": "^1.1.3",
    "html-webpack-plugin": "^2.28.0",
    "optimize-css-assets-webpack-plugin": "^2.0.0",
    "webpack": "^2.6.1",
    "webpack-bundle-analyzer": "^2.2.1",
    "webpack-dev-middleware": "^1.10.0",
    "webpack-hot-middleware": "^2.18.0",
    "webpack-merge": "^4.1.0"

Thanks.

shadyabhi commented 5 years ago

This solution, https://github.com/webpack/webpack/issues/5858#issuecomment-338430720 , with "uglifyjs-webpack-plugin": "^1.3.0", worked for me.