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

26 lines
641 B
JavaScript
Raw Normal View History

2017-05-17 07:09:47 +00:00
/* eslint-disable */
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
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 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;