File tree 2 files changed +25
-1
lines changed
packages/@ngtools/webpack/src
tests/e2e/tests/build/styles
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ function _getResourcesUrls(refactor: TypeScriptFileRefactor): string[] {
361
361
const arr = < ts . ArrayLiteralExpression [ ] > (
362
362
refactor . findAstNodes ( node , ts . SyntaxKind . ArrayLiteralExpression , false ) ) ;
363
363
if ( ! arr || arr . length == 0 || arr [ 0 ] . elements . length == 0 ) {
364
- return ;
364
+ return acc ;
365
365
}
366
366
367
367
arr [ 0 ] . elements . forEach ( ( element : ts . Expression ) => {
Original file line number Diff line number Diff line change
1
+ import { writeMultipleFiles } from '../../../utils/fs' ;
2
+ import { ng } from '../../../utils/process' ;
3
+
4
+
5
+ export default function ( ) {
6
+
7
+ return Promise . resolve ( )
8
+ // Write assets.
9
+ . then ( _ => writeMultipleFiles ( {
10
+ './src/app/app.component.ts' : `
11
+ import { Component } from '@angular/core';
12
+
13
+ @Component({
14
+ selector: 'app-root',
15
+ templateUrl: './app.component.html',
16
+ styleUrls: []
17
+ })
18
+ export class AppComponent {
19
+ title = 'app';
20
+ }
21
+ `
22
+ } ) )
23
+ . then ( ( ) => ng ( 'build' ) ) ;
24
+ }
You can’t perform that action at this time.
0 commit comments