This repository has been archived by the owner on Apr 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
53 lines (52 loc) · 1.96 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {terser} from 'rollup-plugin-terser';
// import { eslint } from "rollup-plugin-eslint";
import banner from 'rollup-plugin-banner';
import ascii from 'rollup-plugin-ascii';
export default {
input: 'src/index.js',
plugins: [
// eslint({
// fix: true,
// }),
ascii()
],
output: [
{
file: 'dist/whhelper.user.js',
format: 'iife',
name: 'distVersion',
plugins: [
terser(),
banner('==/UserScript=='),
banner('@grant none'),
banner('@require https://cdn.jsdelivr.net/npm/sweetalert2@10'),
banner('@match https://www.wykop.pl/*'),
banner('@author <%= pkg.author %>'),
banner('@description Zestaw narzędzi pomocnych na wykopie. Pełna, niezminifikowana wersja kodu dostępna na githubie - PLWpl/WykopHelper'),
banner('@downloadURL https://cdn.jsdelivr.net/gh/plwpl/WykopHelper/dist/whhelper.user.js'),
banner('@updateURL https://cdn.jsdelivr.net/gh/plwpl/WykopHelper/dist/whhelper.user.js'),
banner('@version <%= pkg.version %>'),
banner('@name WykopHelper'),
banner('==UserScript=='),
]
},
{
file: 'dist/whhelper-dev.user.js',
format: 'iife',
name: 'distVersionDEV',
plugins: [
banner('==/UserScript=='),
banner('@grant none'),
banner('@require https://cdn.jsdelivr.net/npm/sweetalert2@10'),
banner('@match https://www.wykop.pl/*'),
banner('@author <%= pkg.author %>'),
banner('@description Zestaw narzędzi pomocnych na wykopie.'),
banner('@downloadURL https://cdn.jsdelivr.net/gh/plwpl/WykopHelper/dist/whhelper-dev.user.js'),
banner('@updateURL https://cdn.jsdelivr.net/gh/plwpl/WykopHelper/dist/whhelper-dev.user.js'),
banner('@version <%= pkg.version %>'),
banner('@name WykopHelper - DEV'),
banner('==UserScript=='),
]
}
]
};