Skip to content

Commit

Permalink
PRO-2207-Admin Frontend Changes (#67)
Browse files Browse the repository at this point in the history
* added Admin Config changes
  • Loading branch information
vignesha22 authored Mar 4, 2024
1 parent b380f8e commit 0e3f000
Show file tree
Hide file tree
Showing 32 changed files with 3,144 additions and 615 deletions.
12 changes: 12 additions & 0 deletions admin_frontend/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
1 change: 1 addition & 0 deletions admin_frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ COPY src/ /admin_frontend/src
COPY package.json /admin_frontend/
COPY postcss.config.js /admin_frontend/
COPY tailwind.config.js /admin_frontend/
COPY demo.env /frontend/.env
RUN npm install
CMD ["npm", "start"]
23 changes: 23 additions & 0 deletions admin_frontend/config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const webpack = require("webpack");

module.exports = function override(config) {
const fallback = config.resolve.fallback || {};
Object.assign(fallback, {});
config.resolve.fallback = fallback;
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: "process/browser",
Buffer: ["buffer", "Buffer"],
}),
]);
config.ignoreWarnings = [/Failed to parse source map/];
config.module.rules.push({
test: /\.(js|mjs|jsx)$/,
enforce: "pre",
loader: require.resolve("source-map-loader"),
resolve: {
fullySpecified: false,
},
});
return config;
};
Loading

0 comments on commit 0e3f000

Please sign in to comment.