-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
37 lines (33 loc) · 811 Bytes
/
webpack.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
var bourbon = require('node-bourbon').includePaths;
var neat = require('node-neat').includePaths;
bourbon = bourbon.concat(neat);
module.exports = {
context: __dirname + "/webpack_app",
entry: {
javascript: "./app.js",
html: "./index.html"
},
output: {
filename: "app.js",
path: __dirname + "/webpack_dist",
publicPath: "/"
},
devtool: "source-map",
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loaders: ["react-hot", "babel-loader?sourceMap"],
},
{
test: /\.html$/,
loader: "file?name=[name].[ext]",
},
{
test: /\.scss$/,
loaders: ["style", "css?sourceMap", "sass?sourceMap&includePaths[]=" + bourbon + neat[0] + '&includePaths[]=' + neat[1]]
}
],
}
}