File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module.exports = (api, options) => {
5
5
const cliServicePath = require ( 'path' ) . dirname ( require . resolve ( '@vue/cli-service' ) )
6
6
7
7
api . chainWebpack ( webpackConfig => {
8
- webpackConfig . resolveLoader . modules . add ( path . join ( __dirname , 'node_modules' ) )
8
+ webpackConfig . resolveLoader . modules . prepend ( path . join ( __dirname , 'node_modules' ) )
9
9
10
10
const jsRule = webpackConfig . module
11
11
. rule ( 'js' )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = (api, options) => {
24
24
)
25
25
26
26
api . chainWebpack ( webpackConfig => {
27
- webpackConfig . resolveLoader . modules . add ( path . join ( __dirname , 'node_modules' ) )
27
+ webpackConfig . resolveLoader . modules . prepend ( path . join ( __dirname , 'node_modules' ) )
28
28
29
29
webpackConfig . module
30
30
. rule ( 'eslint' )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module.exports = (api, options) => {
5
5
const useThreads = process . env . NODE_ENV === 'production' && options . parallel
6
6
7
7
api . chainWebpack ( config => {
8
- config . resolveLoader . modules . add ( path . join ( __dirname , 'node_modules' ) )
8
+ config . resolveLoader . modules . prepend ( path . join ( __dirname , 'node_modules' ) )
9
9
10
10
if ( ! options . pages ) {
11
11
config . entry ( 'app' )
You can’t perform that action at this time.
0 commit comments