2
0
mirror of https://github.com/tenrok/vue-tribute.git synced 2026-06-09 09:22:27 +03:00
Files
vue-tribute/rollup.config.js
T
2016-07-26 13:38:34 -04:00

18 lines
357 B
JavaScript

import { rollup } from "rollup"
import babel from "rollup-plugin-babel"
const env = process.env.BUILD_ENV
const dest = env === "cjs" ? "index.js" : "index.umd.js"
export default {
entry: "./src/index.js",
external: [ "tributejs" ],
plugins: [ babel() ],
dest,
format: env,
moduleName: "VueTribute",
globals: {
tributejs: "Tribute"
}
}