Giter VIP home page Giter VIP logo

Comments (3)

clark-cui avatar clark-cui commented on July 24, 2024

这个是正常行为,你不去主动访问这个node_modules地址,vitepress就不会就打包他的服务。目的是为了保留开发环境下多目录的服务启动。对于这种静态生成器,在生产环境都是构建产物,所以也不会有node_modules目录的情况。
如果你想要开发环境只起指定目录的服务,可以在package.json里scripts字段 dev的command里加上指定目录即可,例如我这里的是posts目录,命令就改为vitepress dev posts

from vitepress-blog-zaun.

charleschetty avatar charleschetty commented on July 24, 2024

感谢回答,我本来是打算加一个搜索插件,结果搜索结果显示了node_modules中的内容,那看来是我配置的问题,感谢。

from vitepress-blog-zaun.

clark-cui avatar clark-cui commented on July 24, 2024

不客气,我这个好久没维护了。之前vitepress默认的模板很丑,所以我自己写了个。现在vitepress默认的主题就不错,推荐直接用vitepress官网那个模板吧,搜索的话可以接入algolia,他有自己写好的包,微调下样式就行

from vitepress-blog-zaun.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.