upload-apollo-client/app/next.config.js
2017-10-02 19:22:51 +11:00

12 lines
270 B
JavaScript

/* eslint-disable import/unambiguous */
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer')
module.exports = {
webpack: config => {
if (process.env.ANALYZE === 'true')
config.plugins.push(new BundleAnalyzerPlugin())
return config
}
}