File tree 10 files changed +16
-16
lines changed
10 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,9 @@ export const baseBuildCommandOptions: any = [
35
35
description : 'Build using Ahead of Time compilation.'
36
36
} ,
37
37
{
38
- name : 'sourcemap ' ,
38
+ name : 'sourcemaps ' ,
39
39
type : Boolean ,
40
- aliases : [ 'sm' , 'sourcemaps ' ] ,
40
+ aliases : [ 'sm' , 'sourcemap ' ] ,
41
41
description : 'Output sourcemaps.'
42
42
} ,
43
43
{
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export interface TestOptions {
15
15
log ?: string ;
16
16
port ?: number ;
17
17
reporters ?: string ;
18
- sourcemap ?: boolean ;
18
+ sourcemaps ?: boolean ;
19
19
progress ?: boolean ;
20
20
config : string ;
21
21
poll ?: number ;
@@ -85,10 +85,10 @@ const TestCommand = EmberTestCommand.extend({
85
85
description : 'List of reporters to use.'
86
86
} ,
87
87
{
88
- name : 'sourcemap ' ,
88
+ name : 'sourcemaps ' ,
89
89
type : Boolean ,
90
90
default : true ,
91
- aliases : [ 'sm' ] ,
91
+ aliases : [ 'sm' , 'sourcemap' ] ,
92
92
description : 'Output sourcemaps.'
93
93
} ,
94
94
{
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export interface BuildOptions {
3
3
environment ?: string ;
4
4
outputPath ?: string ;
5
5
aot ?: boolean ;
6
- sourcemap ?: boolean ;
6
+ sourcemaps ?: boolean ;
7
7
vendorChunk ?: boolean ;
8
8
baseHref ?: string ;
9
9
deployUrl ?: string ;
Original file line number Diff line number Diff line change @@ -73,18 +73,18 @@ export class NgCliWebpackConfig {
73
73
}
74
74
75
75
// Fill in defaults for build targets
76
- public addTargetDefaults ( buildOptions : BuildOptions ) {
77
- const targetDefaults : any = {
76
+ public addTargetDefaults ( buildOptions : BuildOptions ) : BuildOptions {
77
+ const targetDefaults : { [ target : string ] : BuildOptions } = {
78
78
development : {
79
79
environment : 'dev' ,
80
80
outputHashing : 'media' ,
81
- sourcemap : true ,
81
+ sourcemaps : true ,
82
82
extractCss : false
83
83
} ,
84
84
production : {
85
85
environment : 'prod' ,
86
86
outputHashing : 'all' ,
87
- sourcemap : false ,
87
+ sourcemaps : false ,
88
88
extractCss : true ,
89
89
aot : true
90
90
}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
64
64
}
65
65
66
66
return {
67
- devtool : buildOptions . sourcemap ? 'source-map' : false ,
67
+ devtool : buildOptions . sourcemaps ? 'source-map' : false ,
68
68
resolve : {
69
69
extensions : [ '.ts' , '.js' ] ,
70
70
modules : [ nodeModules ] ,
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export const getProdConfig = function (wco: WebpackConfigOptions) {
89
89
new webpack . optimize . UglifyJsPlugin ( < any > {
90
90
mangle : { screw_ie8 : true } ,
91
91
compress : { screw_ie8 : true , warnings : buildOptions . verbose } ,
92
- sourceMap : buildOptions . sourcemap
92
+ sourceMap : buildOptions . sourcemaps
93
93
} )
94
94
] . concat ( extraPlugins )
95
95
} ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
38
38
// style-loader does not support sourcemaps without absolute publicPath, so it's
39
39
// better to disable them when not extracting css
40
40
// https://github.com/webpack-contrib/style-loader#recommended-configuration
41
- const cssSourceMap = buildOptions . extractCss && buildOptions . sourcemap ;
41
+ const cssSourceMap = buildOptions . extractCss && buildOptions . sourcemaps ;
42
42
43
43
// Minify/optimize css in production.
44
44
const cssnanoPlugin = cssnano ( { safe : true , autoprefixer : false } ) ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export function getTestConfig(testConfig: WebpackTestOptions) {
46
46
}
47
47
48
48
return {
49
- devtool : testConfig . sourcemap ? 'inline-source-map' : 'eval' ,
49
+ devtool : testConfig . sourcemaps ? 'inline-source-map' : 'eval' ,
50
50
entry : {
51
51
test : path . resolve ( projectRoot , appConfig . root , appConfig . test )
52
52
} ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const init: any = (config: any) => {
45
45
const testConfig : WebpackTestOptions = Object . assign ( {
46
46
environment : 'dev' ,
47
47
codeCoverage : false ,
48
- sourcemap : true ,
48
+ sourcemaps : true ,
49
49
progress : true ,
50
50
} , config . angularCli ) ;
51
51
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default Task.extend({
31
31
32
32
karmaOptions . angularCli = {
33
33
codeCoverage : options . codeCoverage ,
34
- sourcemap : options . sourcemap ,
34
+ sourcemap : options . sourcemaps ,
35
35
progress : options . progress ,
36
36
poll : options . poll ,
37
37
app : options . app
You can’t perform that action at this time.
0 commit comments