Skip to content

Commit 423b977

Browse files
Add color-modes.js to bootstrap-x.y.z-examples.zip
1 parent bb92ec7 commit 423b977

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build/zip-examples.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const imgFiles = [
3434
'bootstrap-logo.svg',
3535
'bootstrap-logo-white.svg'
3636
]
37+
const staticJsFiles = [
38+
'color-modes.js'
39+
]
3740

3841
sh.config.fatal = true
3942

@@ -52,7 +55,8 @@ sh.mkdir('-p', [
5255
distFolder,
5356
`${distFolder}/assets/brand/`,
5457
`${distFolder}/assets/dist/css/`,
55-
`${distFolder}/assets/dist/js/`
58+
`${distFolder}/assets/dist/js/`,
59+
`${distFolder}/assets/js/`,
5660
])
5761

5862
sh.cp('-Rf', `${docsDir}/examples/*`, distFolder)
@@ -69,6 +73,10 @@ for (const file of imgFiles) {
6973
sh.cp('-f', `${docsDir}/assets/brand/${file}`, `${distFolder}/assets/brand/`)
7074
}
7175

76+
for (const file of staticJsFiles) {
77+
sh.cp('-f', `${docsDir}/assets/js/${file}`, `${distFolder}/assets/js/`)
78+
}
79+
7280
sh.rm(`${distFolder}/index.html`)
7381

7482
// get all examples' HTML files

0 commit comments

Comments
 (0)