Skip to content

Commit

Permalink
Hotfix for "production" !== production webpack issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomanuel committed May 26, 2021
1 parent 06ccc5e commit dd6026f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const appConf = Object.assign({}, baseConf, {
filename: "app.bundle.js"
},
plugins: [
new webpack.DefinePlugin({process: {env: {'NODE_ENV': process.env.NODE_ENV}}}), // Ugly fix for vuelidate
new webpack.DefinePlugin({process: {env: {'NODE_ENV': JSON.stringify(process.env.NODE_ENV)}}}), // Ugly fix for `"production" !== production`
new MiniCssExtractPlugin({
filename: '[name].css',
chunkFilename: '[id].css',
Expand Down Expand Up @@ -81,6 +81,7 @@ const landingConf = Object.assign({}, baseConf, {
filename: "landing.bundle.js"
},
plugins: [
new webpack.DefinePlugin({process: {env: {'NODE_ENV': JSON.stringify(process.env.NODE_ENV)}}}), // Ugly fix for `"production" !== production`
new MiniCssExtractPlugin({
filename: '[name].css',
chunkFilename: '[id].css',
Expand Down

0 comments on commit dd6026f

Please sign in to comment.