forked from arbind/camp-event-dispatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
45 lines (44 loc) · 1.07 KB
/
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
38
39
40
41
42
43
44
45
path = require('path');
module.exports = {
entry: {
main: "./src/main.js",
spec: "mocha!./spec/index.js"
},
output: {
path: path.join(__dirname, "dist"),
filename: "[name].js"
},
resolve: {
extensions: [
"",
".js",
".coffee",
".scss",
".less",
".jade",
".json"
],
root: [
path.join(__dirname, 'web'),
path.join(__dirname, 'src'),
path.join(__dirname, 'spec'),
path.join(__dirname, 'style'),
path.join(__dirname, 'node_modules'),
path.join(__dirname, 'lib'),
]
},
module: {
loaders: [
{ test: /\.coffee$/, loader: "coffee-loader" },
{ test: /\.css$/, loader: "style!css" },
{ test: /\.html.jade$/, loader: "jade-html" },
{ test: /\.jade$/, loader: "jade" },
{ test: /\.less$/, loader: "style!css!less" },
{ test: /\.sass$/, loader: "style!css!sass" },
{ test: /\.scss$/, loader: "style!css!sass" },
{ test: /\.stylus$/, loader: "stylus" },
{ test: /\.json$/, loader: "json" },
]
},
devtool: 'source-map'
};