-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
35 lines (29 loc) · 845 Bytes
/
webpack.dev.config.js
File metadata and controls
35 lines (29 loc) · 845 Bytes
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
'use strict';
var config = require('./webpack.base.config.js');
config.devServer = {
contentBase: 'src',
https: false,
stats: {
colors: true
},
historyApiFallback: true
};
config.module.loaders = config.module.loaders.concat([
{test: /\.jsx?$/, loaders: [
'react-hot',
'babel',
'flowcheck',
'babel?blacklist=flow&optional=runtime'],
exclude: /node_modules/},
{test: /\.json$/, loader: 'json-loader' },
{test: /\.css$/, loader: 'style!css?importLoaders=1!postcss'},
{test: /localforage\/dist\/localforage.js/, loader: 'exports?localforage'},
{test: /[\/](localforage|indexeddb|localstorage|websql)\.js$/,loaders: ['imports?this=>window']}
]);
config.module.noParse = [/localforage\/dist\/localforage.js/];
config.node = {
fs: 'empty',
net: 'empty',
tls: 'empty'
};
module.exports = config;