forked from Starcounter-Jack/JSON-Patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
34 lines (33 loc) · 797 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');
const BabiliPlugin = require('babili-webpack-plugin');
const package = require('./package.json');
module.exports = [
{
entry: './lib/duplex.js',
output: {
filename: './dist/fast-json-patch.js',
library: 'jsonpatch',
libraryTarget: 'var'
},
resolve: {
extensions: ['.js']
},
plugins: [
new webpack.BannerPlugin('fast-json-patch, version: ' + package['version'])
]
},
{
entry: './lib/duplex.js',
output: {
filename: './dist/fast-json-patch.min.js',
library: 'jsonpatch',
libraryTarget: 'var'
},
resolve: {
extensions: ['.js']
},
plugins: [new BabiliPlugin(),
new webpack.BannerPlugin('fast-json-patch, version: ' + package['version'])
]
}
];