Skip to content

Commit

Permalink
add plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
veeramarni committed Feb 21, 2022
1 parent 086517f commit fc020d9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions servers/frontend-server/.zenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');

const plugins = [];
const plugins = [
// new LodashModuleReplacementPlugin({
// // Necessary as a workaround for https://github.com/apollographql/react-apollo/issues/1831
// flattening: true
// }),
];

if (bundleStats) {
plugins.push(new BundleAnalyzerPlugin({ analyzerMode: 'static'}));
plugins.push(new BundleAnalyzerPlugin({ analyzerMode: 'static' }));
}
const config = {
builders: {
Expand Down Expand Up @@ -40,12 +45,7 @@ const config = {
waitOn: ['tcp:localhost:8080'],
enabled: true,
webpackConfig: {
plugins: [
// new LodashModuleReplacementPlugin({
// // Necessary as a workaround for https://github.com/apollographql/react-apollo/issues/1831
// flattening: true
// }),
],
plugins,
// for additional webpack configuration.
resolve: process.env.NODE_ENV !== 'production'
? {
Expand Down Expand Up @@ -81,7 +81,7 @@ const config = {
new LodashModuleReplacementPlugin({
// Necessary as a workaround for https://github.com/apollographql/react-apollo/issues/1831
flattening: true
}),
}),
],
externals: [
nodeExternals(),
Expand Down

0 comments on commit fc020d9

Please sign in to comment.