Skip to content

Commit 57ef0b3

Browse files
committed
Restore app dependencies.
1 parent 8147cf7 commit 57ef0b3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

vue.config.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ plugins.push(new WebpackAssetsManifest({
8989
}
9090
}))
9191

92+
// Define npm module resolve order: 1. local (Twill), 2. root (App)
93+
const appModuleFolder = path.resolve(__dirname, '../../../node_modules') // vendor/area17/twill/
94+
const resolveModules = ['node_modules']
95+
if (fs.existsSync(appModuleFolder)) {
96+
resolveModules.push(appModuleFolder)
97+
}
98+
9299
const config = {
93100
// Define base outputDir of build
94101
outputDir,
@@ -126,7 +133,8 @@ const config = {
126133
'fonts':path.resolve(`${srcDirectory}/fonts`),
127134
'@':path.resolve(`${srcDirectory}/js`),
128135
'styles':path.resolve(`${srcDirectory}/scss`),
129-
}
136+
},
137+
modules: resolveModules
130138
},
131139
plugins
132140
}

0 commit comments

Comments
 (0)