-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.renderer.dev.config.js
More file actions
43 lines (38 loc) · 1.01 KB
/
webpack.renderer.dev.config.js
File metadata and controls
43 lines (38 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
const path = require('path');
const webpack = require('webpack');
const Dashboard = require('webpack-dashboard');
const DashboardPlugin = require('webpack-dashboard/plugin');
const FlowStatusWebpackPlugin = require('flow-status-webpack-plugin');
require('babel-polyfill');
const dashboard = new Dashboard();
module.exports = {
cache: true,
entry: [
'babel-polyfill',
'react-hot-loader/patch',
path.join(__dirname, 'src', 'renderer', 'index.js')
],
output: {
publicPath: '/dist/'
},
devtool: 'cheap-module-eval-source-map',
plugins: [
new DashboardPlugin(dashboard.setData),
new webpack.HotModuleReplacementPlugin(),
// new FlowStatusWebpackPlugin({
// failOnError: true
// }),
new webpack.LoaderOptionsPlugin({
debug : true,
minimize: false
})
],
devServer: {
hot : true,
port : 8080,
quiet : true,
inline : true,
contentBase: '.'
}
};