Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(webpack): update for v4 #3530

Merged
merged 1 commit into from
Apr 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/docs/_examples/webpack/ts/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
Expand Down
10 changes: 5 additions & 5 deletions public/docs/_examples/webpack/ts/config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
// #enddocregion