Files
owl/rollup.config.js
T
2019-03-28 10:57:12 +01:00

15 lines
374 B
JavaScript

import { version } from "./package.json";
import git from "git-rev-sync";
// rollup.config.js
export default {
input: "dist/owl/src/index.js",
output: {
file: "dist/owl.js",
format: "iife",
name: "owl",
extend: true,
outro: `exports._version = '${version}';\nexports._date = '${new Date().toISOString()}';\nexports._hash = '${git.short()}';`
}
};