-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
35 lines (35 loc) · 982 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
module.exports = {
entry : "./app/js/index.js",
output : {
path : __dirname + '/app/dist',
filename : "./mapapp.js",
publicPath : 'dist/'
},
module : {
loaders : [ {
test : /\.less$/,
loader : "style!css!less"
}, {
test : /\.css$/,
loader : "style!css"
}, {
test : /\.jsx$/,
loader : "jsx"
}, {
test : /react-typeahead.*$/,
loader : "jsx"
}, {
test : /\.(png|svg|woff|eot|ttf)/,
loader : 'url-loader?limit=8192'
} ]
},
resolve : {
alias : {
react : __dirname + '/node_modules/react',
underscore : __dirname + '/node_modules/underscore/underscore',
leaflet : __dirname + '/node_modules/leaflet/dist',
'bootstrap-css-only' : __dirname
+ '/node_modules/bootstrap/dist/css',
}
}
};