wuhu-torn-helper/rollup.config.js
2023-02-23 16:34:46 +08:00

31 lines
873 B
JavaScript

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,
}
}),
],
};