added better favicons, moved from sass to glamor, moved components

and utils to src dir, and removed packages no longer being used
This commit is contained in:
JJ Kasper
2018-11-04 01:28:46 -06:00
parent b47f3917bd
commit 31321e635a
99 changed files with 3821 additions and 21818 deletions

View File

@@ -1,26 +1,3 @@
const { ANALYZE, BUILD, NODE_ENV } = process.env
let conf = {
module.exports = {
poweredByHeader: false,
}
if (ANALYZE) {
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
conf.webpack = function(config, { isServer }) {
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'server',
analyzerPort: isServer ? 8888 : 8889,
openAnalyzer: true,
})
)
return config
}
}
// Only add sass module when building or during dev
if (BUILD || NODE_ENV !== 'production') {
const withSass = require('@zeit/next-sass')
conf = withSass(conf)
}
module.exports = conf