HACS plugin repos need the built JS and assets accessible on the default branch. Un-ignored dist/ and committed build output: - dist/perfectdraft-card.js (51KB) - dist/kegs/*.png (72 keg product images) Made-with: Cursor
24 lines
525 B
JavaScript
24 lines
525 B
JavaScript
import resolve from "@rollup/plugin-node-resolve";
|
|
import typescript from "@rollup/plugin-typescript";
|
|
import terser from "@rollup/plugin-terser";
|
|
import copy from "rollup-plugin-copy";
|
|
|
|
export default {
|
|
input: "src/perfectdraft-card.ts",
|
|
output: {
|
|
file: "dist/perfectdraft-card.js",
|
|
format: "es",
|
|
sourcemap: false,
|
|
},
|
|
plugins: [
|
|
resolve(),
|
|
typescript(),
|
|
terser({
|
|
format: { comments: false },
|
|
}),
|
|
copy({
|
|
targets: [{ src: "src/assets/kegs", dest: "dist" }],
|
|
}),
|
|
],
|
|
};
|