Giter VIP home page Giter VIP logo

Comments (8)

YunYouJun avatar YunYouJun commented on May 21, 2024 1

I don't have a good way to trigger hot updates unless I can get the internal reloadConfig method.

Or tell unocss which files need to be watched.

I will create a issue for unocss.

from valaxy.

YunYouJun avatar YunYouJun commented on May 21, 2024

https://github.com/unocss/unocss/blob/9fd1583aff3be2ff04a775458cf023e080f23c5c/packages/vite/src/config-hmr.ts#L24

Since I can't get the ctx of unocss, I haven't figured out a good way to hot reload it at the moment.

from valaxy.

hairyf avatar hairyf commented on May 21, 2024

Does this mean that you can't get HMR without using configFile , looks like it should be an issue with unocss

from valaxy.

hairyf avatar hairyf commented on May 21, 2024

Is there a way we can trigger change, and pass if (!sources.includes(p))

seems unlikely,closing configFile results in an empty source

from valaxy.

YunYouJun avatar YunYouJun commented on May 21, 2024

Oops, After reading the source code, I found that it also supports a configDeps configuration, which I will see if I can implement with it.

from valaxy.

YunYouJun avatar YunYouJun commented on May 21, 2024

Oops, After reading the source code, I found that it also supports a configDeps configuration, which I will see if I can implement with it.

Not work. I can not re-pass my config to init UnoCSS plugins.

from valaxy.

YunYouJun avatar YunYouJun commented on May 21, 2024

unocss/unocss#1262

from valaxy.

YunYouJun avatar YunYouJun commented on May 21, 2024

Unfortunately, we have not received feedback from unocss so far, and corresponding functions cannot be realized from valaxy's perspective.

from valaxy.

Related Issues (20)

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.