29 lines
755 B
JavaScript
29 lines
755 B
JavaScript
/* 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 = [
|
|
...developmentWebpackConfig.plugins,
|
|
new ExtractTextPlugin({ filename: 'styles.css' }),
|
|
new webpack.HotModuleReplacementPlugin(),
|
|
new HtmlWebpackPlugin({
|
|
title: 'Outline',
|
|
}),
|
|
];
|
|
|
|
module.exports = developmentWebpackConfig;
|