forked from shine977/wefetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
35 lines (34 loc) · 858 Bytes
/
rollup.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
const uglify = require('rollup-plugin-uglify').uglify;
import pkg from './wefetch/package.json';
const banner =
`/*
Promise based wx.request api for Mini Program
@Github https://github.com/jonnyshao/wechat-fetch
wefetch beta v${pkg.version} |(c) 2018-2019 By Jonny Shao
*/`;
//../Example/wechat/utils
module.exports = [
{
input: './src/lib/wefetch.js',
output: {
file: './wefetch/dist/wefetch.js',
format: 'umd',
name: 'wefetch',
sourcemap: false,
banner
}
},
{
input: './src/lib/wefetch.js',
output: {
file: './wefetch/dist/wefetch.min.js',
format: 'umd',
name: 'wefetch',
sourcemap: false,
banner
},
plugins: [
uglify()
],
}
];