Skip to content

Commit

Permalink
[templates/angular] Apply webpack resolve alias for angular, only in …
Browse files Browse the repository at this point in the history
…our monorepo (#1990)

* apply webpack resolve alias for angular only in our monorepo

* update changelog
  • Loading branch information
yavorsk authored Dec 3, 2024
1 parent 8bced38 commit 128550d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Our versioning strategy is as follows:
* `[templates/vue]``[sitecore-jss-vue]` Vue version has been updated to 3.5
* `[templates/angular]` Update dependencies and proxy build path value to be unix style path to support xmcloud deployment and monorepo starter kit in xmcloud foundation head ([#1977](https://github.com/Sitecore/jss/pull/1977))
* `[templates/angular]``[templates/angular-sxp]``[templates/angular-xmcloud]` Updates for Angular XMC sample to work well with local containers and spa-starters monorepo in xmcloud-foundation ([#1983](https://github.com/Sitecore/jss/pull/1983))
* `[sitecore-jss-angular]``[templates/angular]` Integrate CloudSDK events firing ([#1984](https://github.com/Sitecore/jss/pull/1984))
* `[sitecore-jss-angular]``[templates/angular]` Integrate CloudSDK events firing ([#1984](https://github.com/Sitecore/jss/pull/1984))([#1990](https://github.com/Sitecore/jss/pull/1990))

### 🛠 Breaking Change

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ const path = require('path');

module.exports = {
plugins: [new Dotenv()],
resolve: {
alias: {
'@sitecore-cloudsdk': path.resolve(__dirname, 'node_modules/@sitecore-cloudsdk'),
<% if (helper.isDev) { %>
resolve: {
alias: {
'@sitecore-cloudsdk': path.resolve(__dirname, 'node_modules/@sitecore-cloudsdk'),
},
},
},
<% } %>
};

0 comments on commit 128550d

Please sign in to comment.