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

Commit 82fcb6f

Browse files
Add support for symlinks
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.
1 parent 5d7ca38 commit 82fcb6f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

config/webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ var devConfig = {
7575

7676
resolve: {
7777
extensions: ['.ts', '.js', '.json'],
78-
modules: [path.resolve('node_modules')]
78+
modules: [path.resolve('node_modules')],
79+
symlinks: false
7980
},
8081

8182
module: {
@@ -122,7 +123,8 @@ var prodConfig = {
122123

123124
resolve: {
124125
extensions: ['.ts', '.js', '.json'],
125-
modules: [path.resolve('node_modules')]
126+
modules: [path.resolve('node_modules')],
127+
symlinks: false
126128
},
127129

128130
module: {

src/util/glob-util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export function generateGlobTasks(patterns: string[], opts: any) {
2929
statCache: Object.create(null),
3030
realpathCache: Object.create(null),
3131
symlinks: Object.create(null),
32+
follow: true,
3233
ignore: []
3334
}, opts);
3435

0 commit comments

Comments
 (0)