Skip to content

Commit 10f6f30

Browse files
committed
webpack all the things
1 parent 901bc62 commit 10f6f30

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

webpack.config.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
var webpack = require('webpack'),
2+
bourbon = require('node-bourbon').includePaths,
3+
outPath = __dirname + '/dist',
4+
resolve = {
5+
extensions: ['','.ls','.js','.json','.sass','.png','.jpg']
6+
},
7+
8+
plugins = [
9+
new webpack.HotModuleReplacementPlugin()
10+
],
11+
12+
modules = {
13+
loaders: [
14+
{ test: /\.js$/, loader: '6to5?experimental' },
15+
{ test: /\.(png|jpg)$/, loader: 'url-loader?limit=8192&name=/images/[name].[ext]&context=./src/images'},
16+
{ test: /\.ls$/, loader: 'livescript-loader?const=true' },
17+
{ test: /\.json$/, loader: 'json' },
18+
{
19+
test: /\.sass$/,
20+
loader: 'style!css!sass?indentedSyntax&' +
21+
"includePaths[]=" + bourbon + "&" +
22+
"includePaths[]=" + __dirname + "./src/sass"
23+
}
24+
]
25+
};
26+
27+
module.exports = {
28+
entry: [
29+
'./src/entry',
30+
'webpack/hot/dev-server',
31+
],
32+
33+
output: {
34+
path : outPath,
35+
filename : 'main.js',
36+
},
37+
resolve: resolve,
38+
module: modules,
39+
plugins: plugins
40+
41+
};

0 commit comments

Comments
 (0)