diff --git a/build.js b/build.js index 247899a6..032f7d82 100644 --- a/build.js +++ b/build.js @@ -9,7 +9,6 @@ const config = { entryPoints: ["ts/main.ts"], bundle: true, format: "esm", - outfile: "static/gen/js/bundle.js", plugins: [vue()], define: { __VUE_OPTIONS_API__: "true", @@ -17,6 +16,12 @@ const config = { __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "false", }, minify, + loader: { + ".css": "css", + }, + outdir: "static/gen", + outbase: "ts", + assetNames: "css/[name]", }; if (watch) { diff --git a/html/template/sync/template-test.html b/html/template/sync/template-test.html index 40eec6f4..40ac2bbc 100644 --- a/html/template/sync/template-test.html +++ b/html/template/sync/template-test.html @@ -4,10 +4,11 @@