Skip to content

Commit

Permalink
Merge pull request #295 from hyva-themes/294/lodash-plugin-issue
Browse files Browse the repository at this point in the history
#294 Remove lodash-webpack-plugin
  • Loading branch information
wigman authored Jul 8, 2022
2 parents 1121eb8 + c50293e commit 885df90
Show file tree
Hide file tree
Showing 7 changed files with 2,092 additions and 1,973 deletions.
6 changes: 0 additions & 6 deletions src/reactapp/config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');

const cssFileNameUpdator = require('./scripts/react-app-rewire/css-file-name-updator');
const reactAppRewirePostCssApplier = require('./scripts/react-app-rewire/postcss-applier');

Expand Down Expand Up @@ -32,10 +30,6 @@ module.exports = function override(config, env) {
};

if (isEnvProduction) {
newConfig.plugins = [
...newConfig.plugins,
new LodashModuleReplacementPlugin({ paths: true }),
];
newConfig.resolve.alias = {
...newConfig.resolve.alias,
lodash: 'lodash-es',
Expand Down
4,050 changes: 2,088 additions & 1,962 deletions src/reactapp/package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/reactapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"eslint-plugin-react-hooks": "^4.5.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.0",
"lodash-webpack-plugin": "^0.11.6",
"postcss": "^8.4.14",
"postcss-import": "^14.1.0",
"postcss-loader": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/view/frontend/web/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/view/frontend/web/css/styles.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/view/frontend/web/js/react-checkout.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/view/frontend/web/js/react-checkout.js.map

Large diffs are not rendered by default.

0 comments on commit 885df90

Please sign in to comment.