forked from js-data/js-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
34 lines (33 loc) · 880 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
var webpack = require('webpack');
var path = require('path');
var pkg = JSON.parse(require('fs').readFileSync('package.json'));
var banner = 'js-data\n' +
'@version ' + pkg.version + ' - Homepage <http://www.js-data.io/>\n' +
'@author Jason Dobry <[email protected]>\n' +
'@copyright (c) 2014-2016 Jason Dobry \n' +
'@license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>\n' +
'\n' +
'@overview Robust framework-agnostic data store.';
module.exports = {
devtool: 'source-map',
entry: './src/index.js',
output: {
filename: './dist/js-data-debug.js',
libraryTarget: 'umd',
library: 'JSData'
},
module: {
loaders: [
{
loader: 'babel-loader',
include: [
path.resolve(__dirname, 'src')
],
test: /\.js$/
}
]
},
plugins: [
new webpack.BannerPlugin(banner)
]
};