Skip to content

Commit 185b590

Browse files
authored
Merge pull request #14 from hs-2171098-hyunjinchoi/fix/github-actions-build-error
fix: manifest.json이 dist에 포함되지 않는 문제 해결
2 parents e2314db + 4e53358 commit 185b590

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ jobs:
2222
- name: Build project
2323
run: npm run build
2424

25+
# dist/ 폴더 및 파일 확인(디버깅용)
26+
- name: List dist directory contents
27+
run: ls -al dist/
28+
29+
- name: Check manifest.json
30+
run: |
31+
if [ ! -f "dist/manifest.json" ]; then
32+
echo "manifest.json not found in dist/";
33+
exit 1;
34+
fi
35+
2536
- name: Build extension
2637
run: zip -r my-extension.zip dist/
2738

File renamed without changes.

vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { resolve } from "path";
44

55
export default defineConfig({
66
root: "src",
7-
publicDir: "assets",
7+
publicDir: "../public",
88
css: {
99
modules: {
1010
scopeBehaviour: "local",
@@ -21,12 +21,12 @@ export default defineConfig({
2121
emptyOutDir: true,
2222
rollupOptions: {
2323
input: {
24-
popup: resolve(__dirname, "src/index.html"),
24+
popup: resolve(__dirname, "src/index.html"),
2525
background: resolve(__dirname, "src/scripts/background.js"),
2626
authorize: resolve(__dirname, "src/scripts/authorize.js")
2727
},
2828
output: {
29-
entryFileNames: "[name].js",
29+
entryFileNames: "[name].js",
3030
}
3131
},
3232
cssCodeSplit: true

0 commit comments

Comments
 (0)