Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kapa local #238

Closed
wants to merge 3 commits into from
Closed

Kapa local #238

wants to merge 3 commits into from

Conversation

Deflaimun
Copy link
Contributor

Adds Kapa locally

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for docs-ui ready!

Name Link
🔨 Latest commit f9a7347
🔍 Latest deploy log https://app.netlify.com/sites/docs-ui/deploys/677c30a672f63f00080cb918
😎 Deploy Preview https://deploy-preview-238--docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -66,7 +66,7 @@ module.exports = (src, dest, preview) => () => {
// NOTE concat already uses stat from newest combined file
.pipe(concat('js/site.js')),
vfs
.src('js/vendor/*([^.])?(.bundle).js', { ...opts, read: false })
.src(['js/vendor/*([^.])?(.bundle).js', '!js/vendor/kapa-widget.bundle.js'], { ...opts, read: false })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we need this change?

Did you try using the method we used for the other vendor scripts that don't get bundled? For example prism or algolia?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you remove .bundle from the script name, it shouldn't require this special treatment,

'gulpfile.js',
'gulp.d/**/*.js',
`${srcDir}/{helpers,js}/**/*.js`,
`!${srcDir}/js/vendor/kapa-widget.bundle.js`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why we need this part.

@Deflaimun
Copy link
Contributor Author

Closing as Kapa doesn't seem to support local bundles.

@Deflaimun Deflaimun closed this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants