docs(webpack): update for v4 (#3530)
This commit is contained in:
parent
1ec0d7621d
commit
0bf521271b
@ -62,7 +62,7 @@ module.exports = {
|
|||||||
// Workaround for angular/angular#11580
|
// Workaround for angular/angular#11580
|
||||||
new webpack.ContextReplacementPlugin(
|
new webpack.ContextReplacementPlugin(
|
||||||
// The (\\|\/) piece accounts for path separators in *nix and Windows
|
// 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
|
helpers.root('./src'), // location of your src
|
||||||
{} // a map of your routes
|
{} // a map of your routes
|
||||||
),
|
),
|
||||||
|
@ -6,21 +6,21 @@ var helpers = require('./helpers');
|
|||||||
|
|
||||||
module.exports = webpackMerge(commonConfig, {
|
module.exports = webpackMerge(commonConfig, {
|
||||||
devtool: 'cheap-module-eval-source-map',
|
devtool: 'cheap-module-eval-source-map',
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
path: helpers.root('dist'),
|
path: helpers.root('dist'),
|
||||||
publicPath: 'http://localhost:8080/',
|
publicPath: '/',
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
chunkFilename: '[id].chunk.js'
|
chunkFilename: '[id].chunk.js'
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
new ExtractTextPlugin('[name].css')
|
new ExtractTextPlugin('[name].css')
|
||||||
],
|
],
|
||||||
|
|
||||||
devServer: {
|
devServer: {
|
||||||
historyApiFallback: true,
|
historyApiFallback: true,
|
||||||
stats: 'minimal'
|
stats: 'minimal'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #enddocregion
|
// #enddocregion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user