Files
owl/rollup.config.js
T
2019-03-27 15:26:20 +01:00

15 lines
376 B
JavaScript

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