-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev.config.js
38 lines (37 loc) · 865 Bytes
/
dev.config.js
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
var webpack = require('webpack');
module.exports = {
entry: [__dirname + '/src/app/client.js', 'webpack-hot-middleware/client'],
output: {
path: __dirname + '/src/app/static',
publicPath: '/static/',
filename: 'app.js'
},
resolve: {
extensions: ['.js', '.elm', '.css']
},
module: {
rules: [
{
test: /\.css$/,
loader: 'style-loader!css-loader'
},
{
test: /\.elm$/,
exclude: [/elm-stuff/, /node_modules/],
use: [
{ loader: 'elm-hot-loader' },
{
loader: 'elm-webpack-loader?warn=true&verbose=true',
options: {
cwd: __dirname,
forceWatch: true,
debug: true
}
}
]
}
],
noParse: /\.elm$/
},
plugins: [new webpack.HotModuleReplacementPlugin()]
};