sparkles: Properly formatted title
This commit is contained in:
parent
ddc8775275
commit
83aaa56bdf
10 changed files with 2694 additions and 4101 deletions
34
packages/plugin-title/rollup.browser.js
Normal file
34
packages/plugin-title/rollup.browser.js
Normal file
|
@ -0,0 +1,34 @@
|
|||
import { terser } from "rollup-plugin-terser";
|
||||
import babel from "rollup-plugin-babel";
|
||||
import resolve from "rollup-plugin-node-resolve";
|
||||
import commonjs from "rollup-plugin-commonjs";
|
||||
import json from "rollup-plugin-json";
|
||||
import meta from "./package.json";
|
||||
|
||||
export default {
|
||||
input: "src/index.js",
|
||||
output: {
|
||||
file: "dist/browser.js",
|
||||
format: "iife",
|
||||
name: "freesewing.plugins.title"
|
||||
},
|
||||
plugins: [
|
||||
resolve({
|
||||
browser: true
|
||||
}),
|
||||
json(),
|
||||
commonjs(),
|
||||
babel({
|
||||
exclude: "node_modules/**"
|
||||
}),
|
||||
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