mirror of https://github.com/sgoudham/carbon.git
Bump to Next@5, remove unneeded config
parent
a6de94367e
commit
33a7e31b66
@ -1,13 +0,0 @@
|
|||||||
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, { dev }) {
|
|
||||||
if (!dev) {
|
|
||||||
c.plugins = c.plugins.filter(plugin => plugin.constructor.name !== 'UglifyJsPlugin')
|
|
||||||
c.plugins.push(new Uglify())
|
|
||||||
}
|
|
||||||
|
|
||||||
return c
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue