mirror of https://github.com/sgoudham/carbon.git
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.
13 lines
335 B
JavaScript
13 lines
335 B
JavaScript
const Uglify = require('uglifyjs-webpack-plugin')
|
|
|
|
module.exports = {
|
|
// TODO remove `next.configs.js` when this closes: https://github.com/zeit/next.js/issues/1195
|
|
webpack: function(c) {
|
|
c.plugins = c.plugins.filter(plugin => plugin.constructor.name !== 'UglifyJsPlugin')
|
|
|
|
c.plugins.push(new Uglify())
|
|
|
|
return c
|
|
}
|
|
}
|