This repository has been archived on 2021-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
svelte-sharg/pwa.rollup.config.mjs

18 lines
460 B
JavaScript
Raw Normal View History

2021-10-05 12:53:14 +02:00
import typescript from "@rollup/plugin-typescript";
import { terser } from "rollup-plugin-terser";
const production = !process.env.ROLLUP_WATCH;
export default {
input: "src/pwa/service-worker.ts",
output: {
file: "public/service-worker.js",
preferConst: true,
strict: true,
},
2021-10-14 13:22:00 +02:00
plugins: [typescript({ tsconfig: "src/pwa/tsconfig.json" }), production && terser({ output: { comments: false } })],
2021-10-05 12:53:14 +02:00
watch: {
clearScreen: false,
},
};