webpack - Error: Unexpected token: punc () -


i'm trying build project uses webpack. uglifyjs options looks this:

new uglifyjsplugin({             sourcemap: false,             uglifyoptions: {               compress: {                 warnings: false,               },               output: {                 comments: false,               },             },           }), 

what error: unexpected token: punc ()) [index-3d0ae630eaa0a0128a00.js:145853,20]

i have found topic saying might problem webpack uglify plugin, i've switched uglifyjs-webpack-plugin.

any ideas?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -