annotate config/webpack.dev.js @ 62:7787ca310644 webpack tip

update @angular to 4.4.5.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Wed, 18 Oct 2017 17:46:41 +0200
parents 7b9d616695d3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
60
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
1 var webpackMerge = require('webpack-merge');
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
2 var ExtractTextPlugin = require('extract-text-webpack-plugin');
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
3 var commonConfig = require('./webpack.common.js');
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
4 var helpers = require('./helpers');
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
5
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
6 module.exports = webpackMerge(commonConfig, {
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
7 devtool: 'cheap-module-eval-source-map',
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
8
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
9 output: {
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
10 path: helpers.root('dist'),
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
11 publicPath: 'http://localhost:8080/',
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
12 filename: '[name].js',
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
13 chunkFilename: '[id].chunk.js'
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
14 },
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
15
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
16 plugins: [
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
17 new ExtractTextPlugin('[name].css')
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
18 ],
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
19
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
20 devServer: {
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
21 historyApiFallback: true,
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
22 stats: 'minimal'
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
23 }
7b9d616695d3 new setup using webpack (and Angular 4).
casties
parents:
diff changeset
24 });