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 working-directory: ./web
steps: steps:
- uses: actions/checkout@v3 - name: Checkout
- uses: actions/configure-pages@v1 uses: actions/checkout@v3
id: pages # - uses: actions/configure-pages@v1
- uses: actions/setup-node@v3 # id: pages
- name: Install Node.js
uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 16
cache: 'npm' cache: 'npm'
cache-dependency-path: 'web/package-lock.json' 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 - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
with: with:

View File

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

View File

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