forked from sorenlouv/fb-sleep-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
32 lines (29 loc) · 740 Bytes
/
webpack.config.js
File metadata and controls
32 lines (29 loc) · 740 Bytes
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
var webpack = require('webpack');
var path = require('path');
var config = require('config');
module.exports = {
entry: path.resolve(__dirname, 'src', 'browser', 'main.js'),
plugins: [new webpack.DefinePlugin({
__FBAPPID__: config.appId
})],
output: {
path: path.resolve(__dirname, 'public'),
publicPath: '/',
filename: 'bundle.js',
},
module: {
loaders: [{
// Less
test: /\.less$/,
loader: 'style!css!less'
// jsx
}, {
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel',
query: {
presets: ['react', 'es2015']
}
}]
}
};