import typescript from "@rollup/plugin-typescript"; import json from "@rollup/plugin-json"; import html from "rollup-plugin-string-html"; export default { input: 'src/ts/index.ts', output: { file: 'dist/bundle.js', format: 'iife', }, plugins: [ typescript(), json(), html({ include: ["**/*.html", "**/*.css"], minifier: { includeAutoGeneratedTags: true, removeAttributeQuotes: true, removeComments: true, removeRedundantAttributes: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true, sortClassName: true, useShortDoctype: true, collapseWhitespace: true, minifyCSS: true, } }), ], };