File tree 2 files changed +16
-0
lines changed
packages/angular-cli/models
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export function getWebpackCommonConfig(
86
86
plugins : [
87
87
new HtmlWebpackPlugin ( {
88
88
template : path . resolve ( appRoot , appConfig . index ) ,
89
+ filename : path . resolve ( appConfig . outDir , appConfig . index ) ,
89
90
chunksSortMode : 'dependency'
90
91
} ) ,
91
92
new BaseHrefWebpackPlugin ( {
Original file line number Diff line number Diff line change
1
+ import { ng } from '../../utils/process' ;
2
+ import { expectFileToExist } from '../../utils/fs' ;
3
+ import { updateJsonFile } from '../../utils/project' ;
4
+
5
+
6
+ export default function ( ) {
7
+ return Promise . resolve ( )
8
+ . then ( ( ) => updateJsonFile ( 'angular-cli.json' , configJson => {
9
+ const app = configJson [ 'apps' ] [ 0 ] ;
10
+ app [ 'outDir' ] = 'config-build-output' ;
11
+ app [ 'index' ] = 'config-index.html' ;
12
+ } ) )
13
+ . then ( ( ) => ng ( 'build' ) )
14
+ . then ( ( ) => expectFileToExist ( './config-build-output/config-index.html' ) ) ;
15
+ }
You can’t perform that action at this time.
0 commit comments