1
0
Fork 0
freesewing/packages/brian/rollup.node.js

29 lines
649 B
JavaScript
Raw Normal View History

2018-07-24 10:15:37 +00:00
import filesize from "rollup-plugin-filesize";
import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import json from "rollup-plugin-json";
import meta from "./package.json";
export default {
2018-07-24 10:15:37 +00:00
input: "src/index.js",
output: {
file: "dist/module.js",
format: "cjs",
banner: `/**\n * ${meta.name} | v${meta.version}\n * ${
meta.description
}\n * (c) ${new Date().getFullYear()} ${meta.author}\n * @license ${
meta.license
}\n */`
},
plugins: [
resolve({
browser: false
2018-07-24 10:15:37 +00:00
}),
json(),
babel({
exclude: "node_modules/**"
}),
filesize()
]
};