recorder icon indicating copy to clipboard operation
recorder copied to clipboard

可添加打包代码以保证ie浏览器不报错

Open Q-Peppa opened this issue 3 years ago • 0 comments

const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
//////
    optimization: {
        minimizer: [
            new UglifyJsPlugin({
                exclude: /node_modules/,
                uglifyOptions: {
                    ie8: true // 解决ie下的关键字default的问题
                }
            })
        ]
    },

Q-Peppa avatar Sep 08 '21 04:09 Q-Peppa