diff --git a/public/docs/_examples/webpack/ts/config/webpack.common.js b/public/docs/_examples/webpack/ts/config/webpack.common.js index be01ad5603..28be240e04 100644 --- a/public/docs/_examples/webpack/ts/config/webpack.common.js +++ b/public/docs/_examples/webpack/ts/config/webpack.common.js @@ -62,7 +62,7 @@ module.exports = { // Workaround for angular/angular#11580 new webpack.ContextReplacementPlugin( // The (\\|\/) piece accounts for path separators in *nix and Windows - /angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/, + /angular(\\|\/)core(\\|\/)@angular/, helpers.root('./src'), // location of your src {} // a map of your routes ), diff --git a/public/docs/_examples/webpack/ts/config/webpack.dev.js b/public/docs/_examples/webpack/ts/config/webpack.dev.js index c1484a0caa..57d29560a0 100644 --- a/public/docs/_examples/webpack/ts/config/webpack.dev.js +++ b/public/docs/_examples/webpack/ts/config/webpack.dev.js @@ -6,21 +6,21 @@ var helpers = require('./helpers'); module.exports = webpackMerge(commonConfig, { devtool: 'cheap-module-eval-source-map', - + output: { path: helpers.root('dist'), - publicPath: 'http://localhost:8080/', + publicPath: '/', filename: '[name].js', chunkFilename: '[id].chunk.js' }, - + plugins: [ new ExtractTextPlugin('[name].css') ], - + devServer: { historyApiFallback: true, stats: 'minimal' } }); -// #enddocregion \ No newline at end of file +// #enddocregion