如何从生产版本中删除webpack dev服务器
我在运行“生产构建”时遇到以下错误。我试图设置节点_ENV=production如何从生产版本中删除webpack dev服务器,webpack,production,Webpack,Production,我在运行“生产构建”时遇到以下错误。我试图设置节点_ENV=production warning.js:14You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertos
warning.js:14You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack
dev-server.js:62 Uncaught Error: [HMR] Hot Module Replacement is disabled.
我有以下网页包插件
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify('production')
}
})
你的问题可能与你的插件无关。请显示您的整个wepback配置。您的问题可能与您的插件无关。请显示您的整个wepback配置。