Skip to content

Commit 238b3f0

Browse files
author
Angular Builds
committed
282eb52 refactor: use buildOptions directly
1 parent c0c887c commit 238b3f0

File tree

11 files changed

+39
-13
lines changed

11 files changed

+39
-13
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"typings": "src/index.d.ts",
77
"builders": "builders.json",
88
"dependencies": {
9-
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#c631c18",
10-
"@angular-devkit/build-optimizer": "github:angular/angular-devkit-build-optimizer-builds#c631c18",
11-
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#c631c18",
12-
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#c631c18",
13-
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#c631c18",
9+
"@angular-devkit/architect": "github:angular/angular-devkit-architect-builds#282eb52",
10+
"@angular-devkit/build-optimizer": "github:angular/angular-devkit-build-optimizer-builds#282eb52",
11+
"@angular-devkit/build-webpack": "github:angular/angular-devkit-build-webpack-builds#282eb52",
12+
"@angular-devkit/core": "github:angular/angular-devkit-core-builds#282eb52",
13+
"@ngtools/webpack": "github:angular/ngtools-webpack-builds#282eb52",
1414
"ajv": "6.5.3",
1515
"autoprefixer": "9.3.1",
1616
"circular-dependency-plugin": "5.0.2",

src/angular-cli-files/models/build-options.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface BuildOptions {
1212
optimization: boolean;
1313
environment?: string;
1414
outputPath: string;
15+
resourcesOutputPath?: string;
1516
aot?: boolean;
1617
sourceMap?: boolean;
1718
vendorSourceMap?: boolean;

src/angular-cli-files/models/build-options.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angular-cli-files/models/webpack-configs/styles.js

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angular-cli-files/plugins/postcss-cli-resources.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as webpack from 'webpack';
33
export interface PostcssCliResourcesOptions {
44
baseHref?: string;
55
deployUrl?: string;
6+
resourcesOutputPath?: string;
67
filename: string;
78
loader: webpack.loader.LoaderContext;
89
}

src/angular-cli-files/plugins/postcss-cli-resources.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/browser/schema.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ export interface BrowserBuilderSchema {
5656
*/
5757
outputPath: string;
5858

59+
/**
60+
* Path where style resources will be placed (Relative to outputPath).
61+
*/
62+
resourcesOutputPath: string;
63+
5964
/**
6065
* Build using Ahead of Time compilation.
6166
*/

src/browser/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
"type": "string",
7272
"description": "The full path for the new output directory, relative to the current workspace.\n\nBy default, writes output to a folder named dist/ in the current project."
7373
},
74+
"resourcesOutputPath": {
75+
"type": "string",
76+
"description": "The path where style resources will be placed, relative to outputPath.",
77+
"default": ""
78+
},
7479
"aot": {
7580
"type": "boolean",
7681
"description": "Build using Ahead of Time compilation.",

src/server/schema.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ export interface BuildWebpackServerSchema {
4949
* Path where output will be placed.
5050
*/
5151
outputPath: string;
52+
/**
53+
* Path where style resources will be placed (Relative to outputPath).
54+
*/
55+
resourcesOutputPath: string;
5256
/**
5357
* Generates a 'stats.json' file which can be analyzed using tools such as:
5458
* #webpack-bundle-analyzer' or https: //webpack.github.io/analyse.

src/server/schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
"type": "string",
4545
"description": "Path where output will be placed."
4646
},
47+
"resourcesOutputPath": {
48+
"type": "string",
49+
"description": "The path where style resources will be placed, relative to outputPath.",
50+
"default": ""
51+
},
4752
"sourceMap": {
4853
"type": "boolean",
4954
"description": "Output sourcemaps.",

0 commit comments

Comments
 (0)