Fix frontend paths
This commit is contained in:
parent
18dcdfb211
commit
737e00bffc
5 changed files with 4 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -92,7 +92,7 @@ fabric.properties
|
|||
# End of https://www.toptal.com/developers/gitignore/api/dotnetcore,rider
|
||||
|
||||
Iceshrimp.Backend/configuration.overrides.ini
|
||||
Iceshrimp.Backend/wwwroot/frontend
|
||||
Iceshrimp.Backend/wwwroot/assets
|
||||
Iceshrimp.Backend/wwwroot/.vite
|
||||
Iceshrimp.Frontend/.yarn
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Iceshrimp</title>
|
||||
<link rel="stylesheet" vite-href="/frontend/src/main.ts" asp-append-version="true"/>
|
||||
<script type="module" vite-src="/frontend/src/main.ts" asp-append-version="true"></script>
|
||||
<link rel="stylesheet" vite-href="/src/main.ts" asp-append-version="true"/>
|
||||
<script type="module" vite-src="/src/main.ts" asp-append-version="true"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
@ -23,7 +23,6 @@ builder.Services.AddViteServices(options => {
|
|||
options.PackageManager = "yarn";
|
||||
options.Server.AutoRun = false; //TODO: Fix script generation on macOS
|
||||
options.Server.UseFullDevUrl = true;
|
||||
options.Base = "frontend"; // relative to wwwroot
|
||||
});
|
||||
builder.Services.AddLogging(logging => logging.AddSimpleConsole(options => {
|
||||
options.SingleLine = true;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vue-tsc && vite build",
|
||||
"gulp": "rm -rf ../Iceshrimp.Backend/wwwroot/assets ../Iceshrimp.Backend/wwwroot/.vite && cp -R ./dist/ ../Iceshrimp.Backend/wwwroot",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -12,7 +12,6 @@ export default defineConfig({
|
|||
}),
|
||||
],
|
||||
build: {
|
||||
outDir: '../Iceshrimp.Backend/wwwroot/frontend',
|
||||
emptyOutDir: true,
|
||||
manifest: true,
|
||||
rollupOptions: {
|
||||
|
|
Loading…
Add table
Reference in a new issue