File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ 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' ) )
9
+
8
10
const jsRule = webpackConfig . module
9
11
. rule ( 'js' )
10
12
. test ( / \. j s x ? $ / )
Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' )
2
+
1
3
module . exports = ( api , options ) => {
2
4
if ( options . lintOnSave ) {
3
5
const extensions = require ( './eslintOptions' ) . extensions ( api )
@@ -22,6 +24,8 @@ module.exports = (api, options) => {
22
24
)
23
25
24
26
api . chainWebpack ( webpackConfig => {
27
+ webpackConfig . resolveLoader . modules . add ( path . join ( __dirname , 'node_modules' ) )
28
+
25
29
webpackConfig . module
26
30
. rule ( 'eslint' )
27
31
. pre ( )
Original file line number Diff line number Diff line change
1
+ const path = require ( 'path' )
2
+
1
3
module . exports = ( api , options ) => {
2
4
const fs = require ( 'fs' )
3
5
const useThreads = process . env . NODE_ENV === 'production' && options . parallel
4
6
5
7
api . chainWebpack ( config => {
8
+ config . resolveLoader . modules . add ( path . join ( __dirname , 'node_modules' ) )
9
+
6
10
if ( ! options . pages ) {
7
11
config . entry ( 'app' )
8
12
. clear ( )
You can’t perform that action at this time.
0 commit comments