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) => {
55 const cliServicePath = require ( 'path' ) . dirname ( require . resolve ( '@vue/cli-service' ) )
66
77 api . chainWebpack ( webpackConfig => {
8+ webpackConfig . resolveLoader . modules . add ( path . join ( __dirname , 'node_modules' ) )
9+
810 const jsRule = webpackConfig . module
911 . rule ( 'js' )
1012 . test ( / \. j s x ? $ / )
Original file line number Diff line number Diff line change 1+ const path = require ( 'path' )
2+
13module . exports = ( api , options ) => {
24 if ( options . lintOnSave ) {
35 const extensions = require ( './eslintOptions' ) . extensions ( api )
@@ -22,6 +24,8 @@ module.exports = (api, options) => {
2224 )
2325
2426 api . chainWebpack ( webpackConfig => {
27+ webpackConfig . resolveLoader . modules . add ( path . join ( __dirname , 'node_modules' ) )
28+
2529 webpackConfig . module
2630 . rule ( 'eslint' )
2731 . pre ( )
Original file line number Diff line number Diff line change 1+ const path = require ( 'path' )
2+
13module . exports = ( api , options ) => {
24 const fs = require ( 'fs' )
35 const useThreads = process . env . NODE_ENV === 'production' && options . parallel
46
57 api . chainWebpack ( config => {
8+ config . resolveLoader . modules . add ( path . join ( __dirname , 'node_modules' ) )
9+
610 if ( ! options . pages ) {
711 config . entry ( 'app' )
812 . clear ( )
You can’t perform that action at this time.
0 commit comments