Mercurial > hg > ng2-query-ismi
comparison config/webpack.dev.js @ 60:7b9d616695d3 webpack
new setup using webpack (and Angular 4).
author | casties |
---|---|
date | Wed, 29 Mar 2017 20:58:57 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
59:0d51fefdbae6 | 60:7b9d616695d3 |
---|---|
1 var webpackMerge = require('webpack-merge'); | |
2 var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
3 var commonConfig = require('./webpack.common.js'); | |
4 var helpers = require('./helpers'); | |
5 | |
6 module.exports = webpackMerge(commonConfig, { | |
7 devtool: 'cheap-module-eval-source-map', | |
8 | |
9 output: { | |
10 path: helpers.root('dist'), | |
11 publicPath: 'http://localhost:8080/', | |
12 filename: '[name].js', | |
13 chunkFilename: '[id].chunk.js' | |
14 }, | |
15 | |
16 plugins: [ | |
17 new ExtractTextPlugin('[name].css') | |
18 ], | |
19 | |
20 devServer: { | |
21 historyApiFallback: true, | |
22 stats: 'minimal' | |
23 } | |
24 }); |