Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
Add support for symlinks
Browse files Browse the repository at this point in the history
In order to share code among projects, using symlinks is one of the options. However, Ionic does not support symlinks out of the box. This commit will add this support.
  • Loading branch information
intodevelopment committed Mar 7, 2019
1 parent 5d7ca38 commit 82fcb6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ var devConfig = {

resolve: {
extensions: ['.ts', '.js', '.json'],
modules: [path.resolve('node_modules')]
modules: [path.resolve('node_modules')],
symlinks: false
},

module: {
Expand Down Expand Up @@ -122,7 +123,8 @@ var prodConfig = {

resolve: {
extensions: ['.ts', '.js', '.json'],
modules: [path.resolve('node_modules')]
modules: [path.resolve('node_modules')],
symlinks: false
},

module: {
Expand Down
1 change: 1 addition & 0 deletions src/util/glob-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function generateGlobTasks(patterns: string[], opts: any) {
statCache: Object.create(null),
realpathCache: Object.create(null),
symlinks: Object.create(null),
follow: true,
ignore: []
}, opts);

Expand Down

0 comments on commit 82fcb6f

Please sign in to comment.