Skip to content

Commit 961e8f7

Browse files
committed
Copy audio files
1 parent 09a0037 commit 961e8f7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/.vscodeignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
!dist
1010

1111
# Include the built webview
12-
!webview-ui
12+
**/*.map
13+
!webview-ui/audio
14+
!webview-ui/build/assets/*.js
15+
!webview-ui/build/assets/*.ttf
16+
!webview-ui/build/assets/*.css
1317

1418
# Include the license file
1519
!LICENSE

src/esbuild.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ const copyAssets = {
172172
name: "copy-assets",
173173
setup(build) {
174174
build.onEnd(() => {
175-
const copyPaths = [["node_modules/vscode-material-icons/generated", "assets/vscode-material-icons"]]
175+
const copyPaths = [
176+
["node_modules/vscode-material-icons/generated", "assets/vscode-material-icons"],
177+
["../webview-ui/audio", "webview-ui/audio"],
178+
]
176179

177180
for (const [srcRelPath, dstRelPath] of copyPaths) {
178181
const srcDir = path.join(__dirname, srcRelPath)

0 commit comments

Comments
 (0)