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
vuepress build with --debug
flag breaks doc search
#1944
Comments
Build with |
Build without |
I also stepped over the issue (with VuePress cli.js/1.2.0 win32-x64 node-v12.13.0) that using @tskrynnyk For me it does work without "--debug". I did notice that no If you read the VuePress CLI documentation carefully, you might notice that this option is intended for development server only. However, I would expect that
I created a tiny VuePress project for me to reproduce the error while I was debugging. |
@ptandler Nice Catch! Never notice that 👍 |
Oh, well, it took me quite a while to figure out what was wrong with my build ;-) |
I made some tests. Change this line
into if (env.isDebug && !isProd) { seems to solve the problem. |
This also caught me out when using the mermaidjs plugin - it would definitely be good to see either a fix or some sort of warnings like ptandler suggested! |
Bug report
vuepress build with "--debug" flag breaks doc search, and perhaps other features.
Steps to reproduce
yarn add -D vuepress serve
vuepress build docs && serve docs/.vuepress/dist
works.vuepress build docs --debug && serve docs/.vuepress/dist
. then try doc search function, type anything without response.What is expected?
It shall work with or without
--debug
flagWhat is actually happening?
Not only doc search failed, the vue devtools can not detect vue on the page.
Other relevant information
npx vuepress info
in my VuePress project:The text was updated successfully, but these errors were encountered: