diff --git a/packages/plugin-theme/README.md b/packages/plugin-theme/README.md index 962f42d44e2..6607ba973c2 100644 --- a/packages/plugin-theme/README.md +++ b/packages/plugin-theme/README.md @@ -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 diff --git a/packages/plugin-theme/rollup.js b/packages/plugin-theme/rollup.js index 3d4d9c565c4..bda46cc4742 100644 --- a/packages/plugin-theme/rollup.js +++ b/packages/plugin-theme/rollup.js @@ -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 */` - // } - //}) ] };