Skip to content

Commit acd4589

Browse files
clydinhansl
authored andcommitted
chore(webpack): minor config cleanup (#3512)
1 parent bcb324f commit acd4589

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

packages/angular-cli/models/webpack-build-common.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ export function getWebpackCommonConfig(
118118
context: projectRoot,
119119
entry: entryPoints,
120120
output: {
121-
path: path.resolve(projectRoot, appConfig.outDir),
122-
filename: '[name].bundle.js',
123-
sourceMapFilename: '[name].bundle.map',
124-
chunkFilename: '[id].chunk.js'
121+
path: path.resolve(projectRoot, appConfig.outDir)
125122
},
126123
module: {
127124
rules: [

packages/angular-cli/models/webpack-build-development.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
const path = require('path');
21
const ExtractTextPlugin = require('extract-text-webpack-plugin');
32

43
export const getWebpackDevConfigPartial = function(projectRoot: string, appConfig: any) {
5-
const appRoot = path.resolve(projectRoot, appConfig.root);
6-
74
return {
85
output: {
9-
path: path.resolve(projectRoot, appConfig.outDir),
106
filename: '[name].bundle.js',
117
sourceMapFilename: '[name].bundle.map',
128
chunkFilename: '[id].chunk.js'

packages/angular-cli/models/webpack-build-production.ts

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const getWebpackProdConfigPartial = function(projectRoot: string,
2424

2525
return {
2626
output: {
27-
path: path.resolve(projectRoot, appConfig.outDir),
2827
filename: '[name].[chunkhash].bundle.js',
2928
sourceMapFilename: '[name].[chunkhash].bundle.map',
3029
chunkFilename: '[id].[chunkhash].chunk.js'

0 commit comments

Comments
 (0)