const { override, addWebpackAlias } = require("customize-cra"); const path = require("path"); module.exports = override( // add an alias for "ag-grid-react" imports addWebpackAlias({ "@components": path.resolve(__dirname, "src/components/"), "@features": path.resolve(__dirname, "src/features/"), "@core": path.resolve(__dirname, "src/core/"), "@api": path.resolve(__dirname, "src/api"), "@hocs": path.resolve(__dirname, "src/hocs"), "@consts": path.resolve(__dirname, "src/consts"), "@context": path.resolve(__dirname, "src/context"), "@hook": path.resolve(__dirname, "src/hook"), "@lib": path.resolve(__dirname, "src/lib"), }) // adjust the underlying workbox );