try fix css
This commit is contained in:
23
.github/workflows/publish-web.yml
vendored
23
.github/workflows/publish-web.yml
vendored
@@ -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:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
import "$src/app.css";
|
import "../app.css";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|||||||
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user