wrench: Updated rollup config and README
This commit is contained in:
parent
fe5d59cc8b
commit
c8b20a0c47
2 changed files with 7 additions and 11 deletions
|
@ -41,7 +41,7 @@ This plugin adds the following CSS classes to your SVG file:
|
|||
|
||||

|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -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 */`
|
||||
// }
|
||||
//})
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue