feat: add sc minification + display class names

This commit is contained in:
Paul Makles
2022-01-14 18:50:58 +00:00
parent 8dd18c9fb4
commit 3fd56e4fdc
82 changed files with 523 additions and 110 deletions

View File

@@ -1,3 +1,4 @@
import macrosPlugin from "@insertish/vite-plugin-babel-macros";
import replace from "@rollup/plugin-replace";
import { readFileSync } from "fs";
import { resolve } from "path";
@@ -43,6 +44,7 @@ function getVersion() {
export default defineConfig({
plugins: [
preact(),
macrosPlugin(),
VitePWA({
srcDir: "src",
filename: "sw.ts",
@@ -88,7 +90,7 @@ export default defineConfig({
__GIT_BRANCH__: getGitBranch(),
__APP_VERSION__: getVersion(),
preventAssignment: true,
}),
}) as any,
],
build: {
sourcemap: true,