Mercurial > hg > ng2-query-ismi
view 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 |
line wrap: on
line source
var webpackMerge = require('webpack-merge'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var commonConfig = require('./webpack.common.js'); var helpers = require('./helpers'); module.exports = webpackMerge(commonConfig, { devtool: 'cheap-module-eval-source-map', output: { path: helpers.root('dist'), publicPath: 'http://localhost:8080/', filename: '[name].js', chunkFilename: '[id].chunk.js' }, plugins: [ new ExtractTextPlugin('[name].css') ], devServer: { historyApiFallback: true, stats: 'minimal' } });