Comments (3)
这个是正常行为,你不去主动访问这个node_modules地址,vitepress就不会就打包他的服务。目的是为了保留开发环境下多目录的服务启动。对于这种静态生成器,在生产环境都是构建产物,所以也不会有node_modules目录的情况。
如果你想要开发环境只起指定目录的服务,可以在package.json里scripts字段 dev的command里加上指定目录即可,例如我这里的是posts目录,命令就改为vitepress dev posts
from vitepress-blog-zaun.
感谢回答,我本来是打算加一个搜索插件,结果搜索结果显示了node_modules中的内容,那看来是我配置的问题,感谢。
from vitepress-blog-zaun.
不客气,我这个好久没维护了。之前vitepress默认的模板很丑,所以我自己写了个。现在vitepress默认的主题就不错,推荐直接用vitepress官网那个模板吧,搜索的话可以接入algolia,他有自己写好的包,微调下样式就行
from vitepress-blog-zaun.
Related Issues (8)
- index HOT 3
- 请教一下使用vscode .vue文件没有 ts 提示是为啥呢? HOT 1
- 关于分类 HOT 2
- markdown-it 配置出错 HOT 2
- What is the Math Equation Support Engine HOT 2
- How to block the Fireworks animation? HOT 1
- 关于Cd..
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vitepress-blog-zaun.