Git Product home page Git Product logo

Comments (3)

Rich-Harris avatar Rich-Harris commented on September 25, 2024

Another possibility — we use something like https://github.com/thgh/rollup-plugin-serve, which I think probably handles these cases. It's designed to work with rollup-plugin-livereload (same author) which we're already using

from template.

Conduitry avatar Conduitry commented on September 25, 2024

What does that use to serve the files? One of the reasons I suggested this was that we could continue to use sirv for serving in dev mode, like we do in prod.

edit: I suppose there are warring goals here, of "have what you do in prod and what you do in dev differ by as little as is practical" and "sirv was never initially intended for dev mode, which was added as an afterthought". I don't know who wins out.

edit again: Another argument against rollup-plugin-serve is that it's a new dependency. I dunno.

from template.

lukeed avatar lukeed commented on September 25, 2024

I don't know, but for the record, I use both of them when developing a FE app on rollup. The dev-mode in sirv is poorly named as it's only really meant to be a cache bypass.

Eventually I'll get around to finishing my HMR until, which would integrate with rollup and sirv... But for now my bandwidth won't allow that anytime soon.

from template.

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.