Star working on a config panel

This commit is contained in:
2022-04-25 13:02:01 +00:00
parent 565c4a6eb1
commit edd03225d2
8 changed files with 323 additions and 47 deletions

View File

@@ -6,19 +6,37 @@ import babel from "@rollup/plugin-babel";
const dev = process.env.ROLLUP_WATCH;
export default {
input: "js/main.ts",
output: {
file: "custom_components/browser_mod/browser_mod.js",
format: "es",
module.exports = [
{
input: "js/browser_mod.ts",
output: {
file: "custom_components/browser_mod/browser_mod.js",
format: "es",
},
plugins: [
nodeResolve(),
json(),
typescript(),
babel({
exclude: "node_modules/**",
}),
!dev && terser({ format: { comments: false } }),
],
},
plugins: [
nodeResolve(),
json(),
typescript(),
babel({
exclude: "node_modules/**",
}),
!dev && terser({ format: { comments: false } }),
],
};
{
input: "js/browser_mod_panel.ts",
output: {
file: "custom_components/browser_mod/browser_mod_panel.js",
format: "es",
},
plugins: [
nodeResolve(),
json(),
typescript(),
babel({
exclude: "node_modules/**",
}),
!dev && terser({ format: { comments: false } }),
],
},
];