Skip to content

Commit

Permalink
chore(webpack): minor config cleanup (angular#3512)
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and MRHarrison committed Feb 9, 2017
1 parent 4889762 commit 8094558
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
5 changes: 1 addition & 4 deletions packages/angular-cli/models/webpack-build-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ export function getWebpackCommonConfig(
context: projectRoot,
entry: entryPoints,
output: {
path: path.resolve(projectRoot, appConfig.outDir),
filename: '[name].bundle.js',
sourceMapFilename: '[name].bundle.map',
chunkFilename: '[id].chunk.js'
path: path.resolve(projectRoot, appConfig.outDir)
},
module: {
rules: [
Expand Down
4 changes: 0 additions & 4 deletions packages/angular-cli/models/webpack-build-development.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

export const getWebpackDevConfigPartial = function(projectRoot: string, appConfig: any) {
const appRoot = path.resolve(projectRoot, appConfig.root);

return {
output: {
path: path.resolve(projectRoot, appConfig.outDir),
filename: '[name].bundle.js',
sourceMapFilename: '[name].bundle.map',
chunkFilename: '[id].chunk.js'
Expand Down
1 change: 0 additions & 1 deletion packages/angular-cli/models/webpack-build-production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const getWebpackProdConfigPartial = function(projectRoot: string,

return {
output: {
path: path.resolve(projectRoot, appConfig.outDir),
filename: '[name].[chunkhash].bundle.js',
sourceMapFilename: '[name].[chunkhash].bundle.map',
chunkFilename: '[id].[chunkhash].chunk.js'
Expand Down

0 comments on commit 8094558

Please sign in to comment.