2017-05-17 07:09:47 +00:00
|
|
|
/* eslint-disable */
|
2016-02-27 21:53:11 +00:00
|
|
|
var webpack = require('webpack');
|
2016-05-24 05:55:42 +00:00
|
|
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
2017-09-12 06:18:44 +00:00
|
|
|
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
2016-02-27 21:53:11 +00:00
|
|
|
|
2018-01-04 05:35:13 +00:00
|
|
|
const commonWebpackConfig = require('./webpack.config');
|
2016-02-27 21:53:11 +00:00
|
|
|
|
2016-04-29 05:25:37 +00:00
|
|
|
const developmentWebpackConfig = Object.assign(commonWebpackConfig, {
|
2016-02-27 21:53:11 +00:00
|
|
|
cache: true,
|
2017-05-17 07:09:47 +00:00
|
|
|
devtool: 'eval-source-map',
|
2016-02-27 21:53:11 +00:00
|
|
|
entry: [
|
2016-08-15 12:59:29 +00:00
|
|
|
'babel-polyfill',
|
2016-06-01 04:54:57 +00:00
|
|
|
'babel-regenerator-runtime',
|
2016-02-27 21:53:11 +00:00
|
|
|
'webpack-hot-middleware/client',
|
2017-10-26 05:49:04 +00:00
|
|
|
'./app/index',
|
2016-02-27 21:53:11 +00:00
|
|
|
],
|
|
|
|
});
|
|
|
|
|
2018-01-22 06:24:10 +00:00
|
|
|
developmentWebpackConfig.plugins = [
|
|
|
|
...developmentWebpackConfig.plugins,
|
|
|
|
new ExtractTextPlugin({ filename: 'styles.css' }),
|
|
|
|
new webpack.HotModuleReplacementPlugin(),
|
2017-05-17 07:09:47 +00:00
|
|
|
new HtmlWebpackPlugin({
|
2017-11-09 08:20:22 +00:00
|
|
|
title: 'Outline',
|
2018-01-22 06:24:10 +00:00
|
|
|
}),
|
|
|
|
];
|
2016-02-27 21:53:11 +00:00
|
|
|
|
|
|
|
module.exports = developmentWebpackConfig;
|