Skip to content

Commit

Permalink
kiosk: setup react-common dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders-ms committed Oct 12, 2023
1 parent c240cd1 commit 3edf83c
Show file tree
Hide file tree
Showing 6 changed files with 10,474 additions and 5,120 deletions.
8 changes: 3 additions & 5 deletions kiosk/config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { aliasWebpack } = require("react-app-alias");
const { aliasWebpack } = require("react-app-alias-ex");
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");

module.exports = function (config, env) {
Expand All @@ -8,6 +9,7 @@ module.exports = function (config, env) {
...aliasFn(config),
plugins: [
...config.plugins.filter((p) => !(p instanceof HtmlWebpackPlugin)),
new NodePolyfillPlugin(),
new HtmlWebpackPlugin(
Object.assign(
{},
Expand All @@ -34,10 +36,6 @@ module.exports = function (config, env) {
)
),
],
module: {
...config.module,
rules: config.module.rules.filter(el => !(el.use && el.use.some(item => !!(item.options && item.options.eslintPath)))),
}
};
return config;
};
Loading

0 comments on commit 3edf83c

Please sign in to comment.