File tree 2 files changed +14
-1
lines changed
packages/@angular/cli/models/webpack-configs
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
67
67
devtool : buildOptions . sourcemaps ? 'source-map' : false ,
68
68
resolve : {
69
69
extensions : [ '.ts' , '.js' ] ,
70
- modules : [ nodeModules ] ,
70
+ modules : [ 'node_modules' , nodeModules ] ,
71
71
} ,
72
72
resolveLoader : {
73
73
modules : [ nodeModules ]
Original file line number Diff line number Diff line change
1
+ import { appendToFile , prependToFile } from '../../utils/fs' ;
2
+ import { ng , silentNpm } from '../../utils/process' ;
3
+
4
+
5
+ export default async function ( ) {
6
+ await silentNpm ( 'install' , 'firebase@3.7.8' ) ;
7
+
8
+ await prependToFile ( 'src/app/app.module.ts' , 'import * as firebase from \'firebase\';' ) ;
9
+ await appendToFile ( 'src/app/app.module.ts' , 'firebase.initializeApp({});' ) ;
10
+
11
+ await ng ( 'build' ) ;
12
+ await ng ( 'build' , '--aot' ) ;
13
+ }
You can’t perform that action at this time.
0 commit comments