diff --git a/apps/api/project.json b/apps/api/project.json index 397a753ec..f3c8bd1e0 100644 --- a/apps/api/project.json +++ b/apps/api/project.json @@ -14,7 +14,8 @@ "tsConfig": "apps/api/tsconfig.app.json", "assets": ["apps/api/src/assets"], "target": "node", - "compiler": "tsc" + "compiler": "tsc", + "webpackConfig": "apps/api/webpack.config.js" }, "configurations": { "production": { diff --git a/apps/api/webpack.config.js b/apps/api/webpack.config.js new file mode 100644 index 000000000..2cc38b985 --- /dev/null +++ b/apps/api/webpack.config.js @@ -0,0 +1,6 @@ +const { composePlugins, withNx } = require('@nx/webpack'); + +module.exports = composePlugins(withNx(), (config, { options, context }) => { + // Customize webpack config here + return config; +});