Make file list less complex

main
Andrew Dassonville 7 years ago committed by Jake Dexheimer
parent ef9bcf6e86
commit 13073fccac

@ -3,12 +3,10 @@ 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 = c.plugins.filter(plugin => plugin.constructor.name !== 'UglifyJsPlugin')
c.plugins.push(new Uglify())
return c
},
}
}

@ -8,8 +8,8 @@
"build": "next build",
"start": "NODE_ENV=production node server.js",
"deploy": "now --public",
"prettier": "prettier --config .prettierrc --write 'components/**/*.js' 'handlers/**/*.js' 'lib/**/*.js' 'pages/**/*.js' 'server.js'",
"lint": "prettier --config .prettierrc -l 'components/**/*.js' 'handlers/**/*.js' 'lib/**/*.js' 'pages/**/*.js' 'server.js'"
"prettier": "prettier --config .prettierrc --write *.js {components,handlers,lib,pages}/*.js",
"lint": "prettier --config .prettierrc -l *.js {components,handlers,lib,pages}/*.js"
},
"dependencies": {
"axios": "^0.16.2",

Loading…
Cancel
Save