You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
carbon/next.config.js

14 lines
369 B
JavaScript

const Uglify = require('uglifyjs-webpack-plugin')
7 years ago
module.exports = {
// TODO remove `next.configs.js` when this closes: https://github.com/zeit/next.js/issues/1195
webpack: function(c, { dev }) {
if (!dev) {
c.plugins = c.plugins.filter(plugin => plugin.constructor.name !== 'UglifyJsPlugin')
c.plugins.push(new Uglify())
}
return c
}
7 years ago
}