UNPKG

1.14 kBJavaScriptView Raw
1import babel from "rollup-plugin-babel";
2import multidest from "rollup-plugin-multidest";
3import nodeResolve from "rollup-plugin-node-resolve";
4import uglify from "rollup-plugin-uglify";
5import license from "rollup-plugin-license";
6
7export default {
8 entry: "src/index.js",
9 dest: "dist/kero.js",
10 format: "iife",
11 moduleName: "bar",
12 plugins: [
13 license({
14 banner: `<%= pkg.name %> v<%= pkg.version %>
15 <%= pkg.description %>
16 author : <%= pkg.author %>
17 homepage : <%= pkg.homepage %>
18 bugs : <%= pkg.bugs.url %>`,
19 }),
20 nodeResolve(),
21 multidest([
22 // targets "main" in package.json
23 // {
24 // dest: "dist/js/tinper-neoui.cjs.js",
25 // format: "cjs"
26 // },
27 // targets browsers
28 {
29 dest: "dist/kero.min.js",
30 format: "iife",
31 plugins: [uglify()]
32 }
33 ]),
34 babel({
35 exclude: "node_modules/**" // only transpile our source code
36 })
37 ]
38};