File tree Expand file tree Collapse file tree 10 files changed +16
-16
lines changed Expand file tree Collapse file tree 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 = [
3535 description : 'Build using Ahead of Time compilation.'
3636 } ,
3737 {
38- name : 'sourcemap ' ,
38+ name : 'sourcemaps ' ,
3939 type : Boolean ,
40- aliases : [ 'sm' , 'sourcemaps ' ] ,
40+ aliases : [ 'sm' , 'sourcemap ' ] ,
4141 description : 'Output sourcemaps.'
4242 } ,
4343 {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export interface TestOptions {
1515 log ?: string ;
1616 port ?: number ;
1717 reporters ?: string ;
18- sourcemap ?: boolean ;
18+ sourcemaps ?: boolean ;
1919 progress ?: boolean ;
2020 config : string ;
2121 poll ?: number ;
@@ -85,10 +85,10 @@ const TestCommand = EmberTestCommand.extend({
8585 description : 'List of reporters to use.'
8686 } ,
8787 {
88- name : 'sourcemap ' ,
88+ name : 'sourcemaps ' ,
8989 type : Boolean ,
9090 default : true ,
91- aliases : [ 'sm' ] ,
91+ aliases : [ 'sm' , 'sourcemap' ] ,
9292 description : 'Output sourcemaps.'
9393 } ,
9494 {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export interface BuildOptions {
33 environment ?: string ;
44 outputPath ?: string ;
55 aot ?: boolean ;
6- sourcemap ?: boolean ;
6+ sourcemaps ?: boolean ;
77 vendorChunk ?: boolean ;
88 baseHref ?: string ;
99 deployUrl ?: string ;
Original file line number Diff line number Diff line change @@ -73,18 +73,18 @@ export class NgCliWebpackConfig {
7373 }
7474
7575 // 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 } = {
7878 development : {
7979 environment : 'dev' ,
8080 outputHashing : 'media' ,
81- sourcemap : true ,
81+ sourcemaps : true ,
8282 extractCss : false
8383 } ,
8484 production : {
8585 environment : 'prod' ,
8686 outputHashing : 'all' ,
87- sourcemap : false ,
87+ sourcemaps : false ,
8888 extractCss : true ,
8989 aot : true
9090 }
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
6464 }
6565
6666 return {
67- devtool : buildOptions . sourcemap ? 'source-map' : false ,
67+ devtool : buildOptions . sourcemaps ? 'source-map' : false ,
6868 resolve : {
6969 extensions : [ '.ts' , '.js' ] ,
7070 modules : [ nodeModules ] ,
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export const getProdConfig = function (wco: WebpackConfigOptions) {
8989 new webpack . optimize . UglifyJsPlugin ( < any > {
9090 mangle : { screw_ie8 : true } ,
9191 compress : { screw_ie8 : true , warnings : buildOptions . verbose } ,
92- sourceMap : buildOptions . sourcemap
92+ sourceMap : buildOptions . sourcemaps
9393 } )
9494 ] . concat ( extraPlugins )
9595 } ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
3838 // style-loader does not support sourcemaps without absolute publicPath, so it's
3939 // better to disable them when not extracting css
4040 // https://github.com/webpack-contrib/style-loader#recommended-configuration
41- const cssSourceMap = buildOptions . extractCss && buildOptions . sourcemap ;
41+ const cssSourceMap = buildOptions . extractCss && buildOptions . sourcemaps ;
4242
4343 // Minify/optimize css in production.
4444 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) {
4646 }
4747
4848 return {
49- devtool : testConfig . sourcemap ? 'inline-source-map' : 'eval' ,
49+ devtool : testConfig . sourcemaps ? 'inline-source-map' : 'eval' ,
5050 entry : {
5151 test : path . resolve ( projectRoot , appConfig . root , appConfig . test )
5252 } ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const init: any = (config: any) => {
4545 const testConfig : WebpackTestOptions = Object . assign ( {
4646 environment : 'dev' ,
4747 codeCoverage : false ,
48- sourcemap : true ,
48+ sourcemaps : true ,
4949 progress : true ,
5050 } , config . angularCli ) ;
5151
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default Task.extend({
3131
3232 karmaOptions . angularCli = {
3333 codeCoverage : options . codeCoverage ,
34- sourcemap : options . sourcemap ,
34+ sourcemap : options . sourcemaps ,
3535 progress : options . progress ,
3636 poll : options . poll ,
3737 app : options . app
You can’t perform that action at this time.
0 commit comments