christian-bromann/devtools-backend

Production build failing

tjelen opened this issue · 3 comments

When building in production mode (to avoid hundreds of HTTP requests and the EMFILE error) the build fails due to renamed Webpack plugin and an unsupported config option (debug).

$ NODE_ENV=production npm run build
...
> devtools-backend@0.0.0 webpack (...)/devtools-backend
> webpack --progress --colors --config .config/webpack.config

(...)/devtools-backend/.config/webpack.config/production.js:26
    plugins: [new _webpack2.default.NoErrorsPlugin(), new _webpack2.default.optimize.OccurenceOrderPlugin(true), new _webpack2.default.optimize.DedupePlugin(), new _webpack2.default.optimize.UglifyJsPlugin({

TypeError: _webpack2.default.optimize.OccurenceOrderPlugin is not a constructor

Would you mind making a PR`?

Sure - I just needed a moment to figure out how to open a PR :)