This commit is contained in:
Jori Lallo
2018-01-03 21:35:13 -08:00
parent 2fd5fc2dff
commit 2c9e92e5b9
19 changed files with 130 additions and 215 deletions

27
webpack.config.dev.js Normal file
View File

@ -0,0 +1,27 @@
/* eslint-disable */
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
const commonWebpackConfig = require('./webpack.config');
const developmentWebpackConfig = Object.assign(commonWebpackConfig, {
cache: true,
devtool: 'eval-source-map',
entry: [
'babel-polyfill',
'babel-regenerator-runtime',
'webpack-hot-middleware/client',
'./app/index',
],
});
developmentWebpackConfig.plugins.push(new ExtractTextPlugin({ filename: 'styles.css' }));
developmentWebpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin());
developmentWebpackConfig.plugins.push(
new HtmlWebpackPlugin({
title: 'Outline',
})
);
module.exports = developmentWebpackConfig;