-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrollup.config.js
34 lines (33 loc) · 1017 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
import babel from "rollup-plugin-babel";
import multidest from "rollup-plugin-multidest";
import nodeResolve from "rollup-plugin-node-resolve";
import uglify from "rollup-plugin-uglify";
import license from "rollup-plugin-license";
// import package from './package.json';
export default {
entry: "src/index.js",
dest: `dist/moy.js`,
format: "iife",
moduleName: "Moy",
plugins: [
license({
banner: `<%= pkg.name %> v<%= pkg.version %>
<%= pkg.description %>
author : <%= pkg.author %>
homepage : <%= pkg.homepage %>
bugs : <%= pkg.bugs.url %>`,
}),
nodeResolve(),
multidest([
{
dest: `dist/moy.min.js`,
format: "iife",
moduleName: "Moy",
plugins: [uglify()]
}
]),
babel({
// exclude: "node_modules/**" // only transpile our source code
})
]
};