try fix css

This commit is contained in:
texm
2023-04-25 16:05:46 +08:00
parent 8d748ef8a0
commit a7469cfee9
3 changed files with 20 additions and 10 deletions

View File

@@ -24,16 +24,27 @@ jobs:
working-directory: ./web
steps:
- uses: actions/checkout@v3
- uses: actions/configure-pages@v1
id: pages
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v3
# - uses: actions/configure-pages@v1
# id: pages
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: 'web/package-lock.json'
- run: npm install
- run: npm run build
- name: Install dependencies
run: npm install
- name: build
env:
BASE_PATH: '/shokku'
run: |
npm run build
touch build/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:

View File

@@ -1,5 +1,5 @@
<script>
import "$src/app.css";
import "../app.css";
</script>
<svelte:head>

View File

@@ -9,11 +9,10 @@ const config = {
pages: 'build',
assets: 'build',
fallback: null,
precompress: false,
strict: true
precompress: false
}),
paths: {
base: dev ? '' : '/shokku',
base: dev ? '' : process.env.BASE_PATH,
},
},
preprocess: vitePreprocess(),