create-solid
Advanced tools
Comparing version 0.1.0-alpha.4 to 0.1.0-alpha.5
{ | ||
"name": "create-solid", | ||
"version": "0.1.0-alpha.4", | ||
"version": "0.1.0-alpha.5", | ||
"description": "Create Solid apps with low configuration", | ||
@@ -21,3 +21,3 @@ "author": "Ryan Carniato", | ||
], | ||
"gitHead": "69131fa03372e0448077fa333eedf464e1045fac" | ||
"gitHead": "e25acd78511263c229c931fb850ecbe1e23efec9" | ||
} |
@@ -10,4 +10,7 @@ { | ||
"jsx": "preserve", | ||
"types": ["vite/client"] | ||
"types": ["vite/client"], | ||
"paths": { | ||
"~/*": ["./src/*"] | ||
} | ||
} | ||
} |
import { defineConfig } from "vite"; | ||
import solid from "vite-plugin-solid"; | ||
import manifest from "rollup-route-manifest"; | ||
import path from "path"; | ||
import solid from "solid-start"; | ||
export default defineConfig({ | ||
resolve: { | ||
alias: [{ | ||
find: "~", | ||
replacement: path.join(process.cwd(), "src") | ||
}, { | ||
find: "@solid-start", | ||
replacement: path.join(process.cwd(), "node_modules", "solid-start", "runtime") | ||
}] | ||
}, | ||
ssr: { | ||
noExternal: ["solid-app-router"] | ||
}, | ||
plugins: [ | ||
solid({ ssr: true }), | ||
{ | ||
name: "html-async", | ||
enforce: "post", | ||
transformIndexHtml(html) { | ||
return html.replace('type="module"', 'type="module" async'); | ||
} | ||
}, | ||
manifest({ | ||
inline: false, | ||
merge: false, | ||
publicPath: "/", | ||
routes: (file) => { | ||
file = file.replace(path.join(__dirname, "src"), "").replace(/\.[tj]sx?$/, ""); | ||
if (!file.includes("/pages/")) return "*"; // commons | ||
return "/" + file.replace("/pages/", "").toLowerCase(); | ||
} | ||
}) | ||
], | ||
@@ -39,0 +8,0 @@ build: { |
import { defineConfig } from "vite"; | ||
import solid from "vite-plugin-solid"; | ||
import manifest from "rollup-route-manifest"; | ||
import path from "path"; | ||
import solid from "solid-start"; | ||
export default defineConfig({ | ||
resolve: { | ||
alias: [{ | ||
find: "~", | ||
replacement: path.join(process.cwd(), "src") | ||
}, { | ||
find: "@solid-start", | ||
replacement: path.join(process.cwd(), "node_modules", "solid-start", "runtime") | ||
}] | ||
}, | ||
ssr: { | ||
noExternal: ["solid-app-router"] | ||
}, | ||
plugins: [ | ||
solid({ ssr: true }), | ||
{ | ||
name: "html-async", | ||
enforce: "post", | ||
transformIndexHtml(html) { | ||
return html.replace('type="module"', 'type="module" async'); | ||
} | ||
}, | ||
manifest({ | ||
inline: false, | ||
merge: false, | ||
publicPath: "/", | ||
routes: (file) => { | ||
file = file.replace(path.join(__dirname, "src"), "").replace(/\.[tj]sx?$/, ""); | ||
if (!file.includes("/pages/")) return "*"; // commons | ||
return "/" + file.replace("/pages/", "").toLowerCase(); | ||
} | ||
}) | ||
], | ||
@@ -39,0 +8,0 @@ build: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21
100982
84