@@ -86,7 +86,8 @@ module.exports = {
8686 ownNodeModules : resolveApp ( 'node_modules' ) ,
8787 nodePaths : nodePaths ,
8888 publicUrl : getPublicUrl ( resolveApp ( 'package.json' ) ) ,
89- servedPath : getServedPath ( resolveApp ( 'package.json' ) )
89+ servedPath : getServedPath ( resolveApp ( 'package.json' ) ) ,
90+ webpackConfig : resolveApp ( 'webpack.config.js' ) ,
9091} ;
9192
9293// @remove -on-eject-begin
@@ -109,7 +110,8 @@ module.exports = {
109110 ownNodeModules : resolveOwn ( '../node_modules' ) ,
110111 nodePaths : nodePaths ,
111112 publicUrl : getPublicUrl ( resolveApp ( 'package.json' ) ) ,
112- servedPath : getServedPath ( resolveApp ( 'package.json' ) )
113+ servedPath : getServedPath ( resolveApp ( 'package.json' ) ) ,
114+ webpackConfig : resolveApp ( 'webpack.config.js' ) ,
113115} ;
114116
115117// config before publish: we're in ./packages/react-scripts/config/
@@ -127,7 +129,8 @@ if (__dirname.indexOf(path.join('packages', 'react-scripts', 'config')) !== -1)
127129 ownNodeModules : resolveOwn ( '../node_modules' ) ,
128130 nodePaths : nodePaths ,
129131 publicUrl : getPublicUrl ( resolveOwn ( '../package.json' ) ) ,
130- servedPath : getServedPath ( resolveOwn ( '../package.json' ) )
132+ servedPath : getServedPath ( resolveOwn ( '../package.json' ) ) ,
133+ webpackConfig : resolveApp ( '../template/webpack.config.js' ) ,
131134 } ;
132135}
133136// @remove -on-eject-end
0 commit comments