Moved config files to a separate folder

This commit is contained in:
Jori Lallo
2018-01-03 16:58:34 -08:00
parent 686c237e36
commit 7a7f8f7c53
6 changed files with 13 additions and 15 deletions

View File

@ -1,27 +0,0 @@
/* 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;