From 82fcb6f919811bba401e05cc1ca9029478d2914a Mon Sep 17 00:00:00 2001 From: Wouter Date: Thu, 7 Mar 2019 20:07:36 +0100 Subject: [PATCH] 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. --- config/webpack.config.js | 6 ++++-- src/util/glob-util.ts | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/webpack.config.js b/config/webpack.config.js index d152b2b3..4a846e0e 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -75,7 +75,8 @@ var devConfig = { resolve: { extensions: ['.ts', '.js', '.json'], - modules: [path.resolve('node_modules')] + modules: [path.resolve('node_modules')], + symlinks: false }, module: { @@ -122,7 +123,8 @@ var prodConfig = { resolve: { extensions: ['.ts', '.js', '.json'], - modules: [path.resolve('node_modules')] + modules: [path.resolve('node_modules')], + symlinks: false }, module: { diff --git a/src/util/glob-util.ts b/src/util/glob-util.ts index e3b917ee..294f2912 100644 --- a/src/util/glob-util.ts +++ b/src/util/glob-util.ts @@ -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);