This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/webpack.config.dev.js
2017-11-09 00:20:22 -08:00

32 lines
934 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.push(
new webpack.optimize.OccurenceOrderPlugin()
);
developmentWebpackConfig.plugins.push(new ExtractTextPlugin('styles.css'));
developmentWebpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin());
developmentWebpackConfig.plugins.push(new webpack.NoErrorsPlugin());
developmentWebpackConfig.plugins.push(
new HtmlWebpackPlugin({
title: 'Outline',
})
);
module.exports = developmentWebpackConfig;