Skip to content

Webpack production build error Assignment to constant variable. when mouse dragging #442

Answered by wise1999
wise1999 asked this question in Q&A
Discussion options

You must be logged in to vote

Okay, so I solved this by removing compress options and changing ecma from 5 to 8 in UglifyJsPlugin.

webpack.config.optimize.js file:

    new UglifyJsPlugin({
      uglifyOptions: {
        ecma: 8,
      },
    }),

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NaotoshiFujita
Comment options

Answer selected by wise1999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants