-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.dev.config.js
More file actions
37 lines (35 loc) · 908 Bytes
/
webpack.dev.config.js
File metadata and controls
37 lines (35 loc) · 908 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
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: [
"./src/js/app.jsx",
"webpack/hot/dev-server",
"webpack-dev-server/client?http://localhost:8080/"
],
output: {
path: path.join(__dirname, "build"),
filename: "bundle.js"
},
module: {
loaders: [
{
test: /\.json$/,
exclude: /node_modules/,
loader: "json-loader"
},
{
test: /\.jsx$/,
exclude: /node_modules/,
loader: "babel-loader"
},
{
test: /\.scss$/,
exclude: /node_modules/,
loader: "style-loader!css-loader!postcss-loader!sass-loader"
}
]
},
plugins: [
new webpack.HotModuleReplacementPlugin()
]
};