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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user