@@ -18,11 +18,11 @@ export function getWebpackCommonConfig(
1818 const appRoot = path . resolve ( projectRoot , appConfig . root ) ;
1919 const appMain = path . resolve ( appRoot , appConfig . main ) ;
2020 const styles = appConfig . styles
21- ? appConfig . styles . map ( ( style : string ) => path . resolve ( appRoot , style ) )
22- : [ ] ;
21+ ? appConfig . styles . map ( ( style : string ) => path . resolve ( appRoot , style ) )
22+ : [ ] ;
2323 const scripts = appConfig . scripts
24- ? appConfig . scripts . map ( ( script : string ) => path . resolve ( appRoot , script ) )
25- : [ ] ;
24+ ? appConfig . scripts . map ( ( script : string ) => path . resolve ( appRoot , script ) )
25+ : [ ] ;
2626 const lazyModules = findLazyModules ( appRoot ) ;
2727
2828 let entry : { [ key : string ] : string [ ] } = {
@@ -37,7 +37,12 @@ export function getWebpackCommonConfig(
3737 devtool : 'source-map' ,
3838 resolve : {
3939 extensions : [ '' , '.ts' , '.js' ] ,
40- root : appRoot
40+ root : appRoot ,
41+ plugins : [
42+ new atl . TsConfigPathsPlugin ( {
43+ tsconfig : path . resolve ( appRoot , appConfig . tsconfig )
44+ } )
45+ ]
4146 } ,
4247 context : path . resolve ( __dirname , './' ) ,
4348 entry : entry ,
@@ -80,7 +85,8 @@ export function getWebpackCommonConfig(
8085 } , {
8186 exclude : styles ,
8287 test : / \. s t y l $ / ,
83- loaders : [ 'raw-loader' , 'postcss-loader' , 'stylus-loader' ] } ,
88+ loaders : [ 'raw-loader' , 'postcss-loader' , 'stylus-loader' ]
89+ } ,
8490 {
8591 exclude : styles ,
8692 test : / \. l e s s $ / ,
@@ -153,7 +159,7 @@ export function getWebpackCommonConfig(
153159 new CopyWebpackPlugin ( [ {
154160 context : path . resolve ( appRoot , appConfig . assets ) ,
155161 from : { glob : '**/*' , dot : true } ,
156- ignore : [ '.gitkeep' ] ,
162+ ignore : [ '.gitkeep' ] ,
157163 to : path . resolve ( projectRoot , appConfig . outDir , appConfig . assets )
158164 } ] )
159165 ] ,
0 commit comments