File tree 3 files changed +10
-6
lines changed
packages/angular_devkit/build_angular/src
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export interface BrowserBuilderSchema {
49
49
/**
50
50
* Replace files with other files in the build.
51
51
*/
52
- fileReplacements : FileReplacements [ ] ;
52
+ fileReplacements : FileReplacement [ ] ;
53
53
54
54
/**
55
55
* Path where output will be placed.
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ export class ExtractI18nBuilder implements Builder<ExtractI18nBuilderOptions> {
85
85
86
86
// Extracting i18n uses the browser target webpack config with some specific options.
87
87
const webpackConfig = this . buildWebpackConfig ( root , projectRoot , {
88
- ...browserOptions ,
88
+ // todo: remove this casting when 'CurrentFileReplacement' is changed to 'FileReplacement'
89
+ ...( browserOptions as NormalizedBrowserBuilderSchema ) ,
89
90
optimization : false ,
90
91
i18nLocale : options . i18nLocale ,
91
92
i18nFormat : options . i18nFormat ,
Original file line number Diff line number Diff line change 5
5
* Use of this source code is governed by an MIT-style license that can be
6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
+
9
+ import { FileReplacement } from '../browser/schema' ;
10
+
8
11
export interface BuildWebpackServerSchema {
9
12
/**
10
13
* The name of the TypeScript configuration file.
@@ -80,7 +83,7 @@ export interface BuildWebpackServerSchema {
80
83
/**
81
84
* Replace files with other files in the build.
82
85
*/
83
- fileReplacements : FileReplacements [ ] ;
86
+ fileReplacements : FileReplacement [ ] ;
84
87
/**
85
88
* Define the output filename cache-busting hashing mode.
86
89
*/
@@ -125,9 +128,9 @@ export interface BuildWebpackServerSchema {
125
128
* Run build when files change.
126
129
*/
127
130
watch ?: boolean ;
128
- /**
129
- * Enable and define the file watching poll time period in milliseconds.
130
- */
131
+ /**
132
+ * Enable and define the file watching poll time period in milliseconds.
133
+ */
131
134
poll ?: number ;
132
135
}
133
136
You can’t perform that action at this time.
0 commit comments