1
0
Fork 0

construction: Wow Rollup, you are sure giving me grief

This commit is contained in:
joostdecock 2018-07-26 10:03:19 +00:00 committed by Joost De Cock
parent 587f0e1ef9
commit ba2729811d
11 changed files with 1073 additions and 1021 deletions

View file

@ -1,20 +1,17 @@
import { terser } from "rollup-plugin-terser";
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 resolve from "rollup-plugin-node-resolve";
import meta from "./package.json";
export default {
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 */`
file: "dist/node.js",
format: "cjs"
},
external: ["freesewing"],
plugins: [
resolve({
browser: false
@ -24,5 +21,14 @@ export default {
exclude: "node_modules/**"
}),
filesize()
//terser({
// output: {
// preamble: `/**\n * ${meta.name} | v${meta.version}\n * ${
// meta.description
// }\n * (c) ${new Date().getFullYear()} ${meta.author}\n * @license ${
// meta.license
// }\n */`
// }
//})
]
};