🔧 fix: update template handling and svelte compiler options for improved build process
This commit is contained in:
@@ -59,7 +59,9 @@ jobs:
|
||||
sed -i s/__TIMESTAMP__/$stamp/g frontend/spa.html
|
||||
# sed -i s/__TIMESTAMP__/$stamp/g frontend/serviceworker.js
|
||||
# cat frontend/serviceworker.js
|
||||
rm api/templates/spa.html
|
||||
|
||||
test -d api/templates && test -f api/templates/spa.html && rm api/templates/spa.html
|
||||
test -d api/templates && cp frontend/spa.html api/templates/spa.html
|
||||
cp frontend/spa.html api/templates/spa.html
|
||||
echo ______ frontend/spa.html ______
|
||||
cat frontend/spa.html
|
||||
|
||||
@@ -9,8 +9,7 @@ config.options.splitting = false
|
||||
config.options.plugins = [
|
||||
config.sveltePlugin({
|
||||
compilerOptions: {
|
||||
css: false,
|
||||
hydratable: false,
|
||||
css: "external",
|
||||
dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build",
|
||||
},
|
||||
preprocess: svelteConfig.preprocess,
|
||||
|
||||
@@ -33,7 +33,6 @@ const svelteConfig = require("./svelte.config")
|
||||
const esbuildSvelte = sveltePlugin({
|
||||
compilerOptions: {
|
||||
css: "external",
|
||||
hydratable: true,
|
||||
dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build",
|
||||
},
|
||||
preprocess: svelteConfig.preprocess,
|
||||
|
||||
@@ -13,9 +13,8 @@ config.options.outfile = __dirname + "/_temp/app.server.js"
|
||||
config.options.plugins = [
|
||||
config.sveltePlugin({
|
||||
compilerOptions: {
|
||||
generate: "ssr",
|
||||
css: false,
|
||||
hydratable: true,
|
||||
generate: "server",
|
||||
css: "external",
|
||||
dev: (process.argv?.length > 2 ? process.argv[2] : "build") !== "build",
|
||||
},
|
||||
preprocess: svelteConfig.preprocess,
|
||||
|
||||
Reference in New Issue
Block a user