Closed metrey closed 5 years ago
I comment out the plugin UglifyJs
// UglifyJs do not support ES6+, you can also use babel-minify for better treeshaking: https://github.com/babel/minify // new webpack.optimize.UglifyJsPlugin({
Sorry but it seems not the problem of rest-admin.
Closed temporary.
Build for production with
npm run-script build
got error` ERROR in static/js/vendor.js from UglifyJs Unexpected token: name (code) [./node_modules/vue-snotify/vue-snotify.esm.js:104,0][static/js/vendor.js:27544,12]
Build failed with errors.
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! my-dev@0.9.1 build:
node build/build.js
npm ERR! Exit status 1 `I did try around this: https://github.com/artemsky/vue-snotify/issues/14 but not work at all.
My environment:
Anyone face or any solution?