Skip to content

Commit 0bf5212

Browse files
authored
docs(webpack): update for v4 (angular#3530)
1 parent 1ec0d76 commit 0bf5212

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

public/docs/_examples/webpack/ts/config/webpack.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = {
6262
// Workaround for angular/angular#11580
6363
new webpack.ContextReplacementPlugin(
6464
// The (\\|\/) piece accounts for path separators in *nix and Windows
65-
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
65+
/angular(\\|\/)core(\\|\/)@angular/,
6666
helpers.root('./src'), // location of your src
6767
{} // a map of your routes
6868
),

public/docs/_examples/webpack/ts/config/webpack.dev.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ var helpers = require('./helpers');
66

77
module.exports = webpackMerge(commonConfig, {
88
devtool: 'cheap-module-eval-source-map',
9-
9+
1010
output: {
1111
path: helpers.root('dist'),
12-
publicPath: 'http://localhost:8080/',
12+
publicPath: '/',
1313
filename: '[name].js',
1414
chunkFilename: '[id].chunk.js'
1515
},
16-
16+
1717
plugins: [
1818
new ExtractTextPlugin('[name].css')
1919
],
20-
20+
2121
devServer: {
2222
historyApiFallback: true,
2323
stats: 'minimal'
2424
}
2525
});
26-
// #enddocregion
26+
// #enddocregion

0 commit comments

Comments
 (0)