This repository was archived by the owner on Mar 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.hot.js
More file actions
37 lines (37 loc) · 1.56 KB
/
webpack.config.hot.js
File metadata and controls
37 lines (37 loc) · 1.56 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
module.exports = {
debug: true,
devtool: 'inline-source-map',
entry: [
"./client/app.jsx"
],
output: {
path: './assets/app',
filename: 'bundle.js',
publicPath: 'http://localhost:8080/app/'
},
module: {
loaders: [
{ test: /\.js$/, loaders: ["react-hot", "babel?plugins=jsx-control-statements/babel"], exclude: /node_modules/ },
{ test: /\.jsx$/, loaders: ["react-hot", "babel?plugins=jsx-control-statements/babel"], exclude: /node_modules/ },
{ test: /\.json$/, loader: "babel?plugins=jsx-control-statements/babel" },
{ test: /\.coffee$/, loader: "coffee" },
{ test: /\.css$/, loader: "style!css" },
{ test: /\.scss$/, loader: "style!css!sass" },
{ test: /\.jade$/, loader: "jade?self" },
{ test: /\.png$/, loader: "url?prefix=img/&limit=5000" },
{ test: /\.jpg$/, loader: "url?prefix=img/&limit=5000" },
{ test: /\.gif$/, loader: "url?prefix=img/&limit=5000" },
{ test: /\.eot$/, loader: "file?prefix=font/" },
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url?limit=10000&minetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file" }
]
},
resolve: {
extensions: ['', '.js', '.jsx'],
alias: {
"app": __dirname + "/client",
"components": __dirname + "/client/components",
"pages": __dirname + "/client/pages"
}
}
};