initial commit

This commit is contained in:
JJ Kasper
2018-05-17 14:31:05 -05:00
commit 2c90d2e7dd
79 changed files with 10684 additions and 0 deletions

20
next.config.js Normal file
View File

@@ -0,0 +1,20 @@
const withSass = require('@zeit/next-sass');
const { ANALYZE } = process.env
let AnalyzerPlugin;
if(ANALYZE) {
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
AnalyzerPlugin = BundleAnalyzerPlugin;
}
module.exports = withSass({
poweredByHeader: false,
webpack: function (config, { isServer }) {
if (ANALYZE) {
config.plugins.push(new AnalyzerPlugin({
analyzerMode: 'server',
analyzerPort: isServer ? 8888 : 8889,
openAnalyzer: true
}))
}
return config
}
});