1
0
Fork 0

wrench: Updated rollup config and README

This commit is contained in:
Joost De Cock 2018-08-09 11:38:19 +02:00
parent fe5d59cc8b
commit c8b20a0c47
2 changed files with 7 additions and 11 deletions

View file

@ -41,7 +41,7 @@ This plugin adds the following CSS classes to your SVG file:
![Example of the style provided by this theme](https://github.com/freesewing/plugin-theme/raw/master/img/example.png)
In addition, it adds the `notch` snippet to your SVG file's defs section.
In addition, it adds the `notch` and `bnotch` snippets to your SVG file's defs section.
## Install

View file

@ -2,7 +2,7 @@ import { terser } from "rollup-plugin-terser";
import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import json from "rollup-plugin-json";
import meta from "./package.json";
import { version, name, description, author, license } from "./package.json";
export default {
input: "src/index.js",
@ -13,15 +13,11 @@ export default {
json(),
babel({
exclude: "node_modules/**"
}),
terser({
output: {
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
}
})
//terser({
// output: {
// preamble: `/**\n * ${meta.name} | v${meta.version}\n * ${
// meta.description
// }\n * (c) ${new Date().getFullYear()} ${meta.author}\n * @license ${
// meta.license
// }\n */`
// }
//})
]
};