-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.dev.js
More file actions
45 lines (44 loc) · 977 Bytes
/
Copy pathwebpack.config.dev.js
File metadata and controls
45 lines (44 loc) · 977 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
36
37
38
39
40
41
42
43
44
45
var path = require("path");
var LiveReloadPlugin = require('webpack-livereload-plugin');
module.exports = {
devtool: 'eval',
cache: true,
context: __dirname,
entry: [
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server',
path.join(__dirname, '/src/app.jsx')
],
output: {
path: path.join(__dirname, "build-dev"),
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.jsx$/,
exclude: /node_modules\/(?!(stardust))/,
loader: ['babel'],
query: {
cacheDirectory: true,
plugins: [
'transform-runtime',
'add-module-exports',
'transform-decorators-legacy',
],
presets: ['react', 'es2015', 'stage-1']
}
},
{
test: /\.css$/,
loader: 'style!css'
}
]
},
resolve: {
extensions: ['', '.js', '.jsx']
},
plugins: [
new LiveReloadPlugin()
]
};