Giter Site home page Giter Site logo

Comments (10)

maman avatar maman commented on May 1, 2024 6

webpack-dev-middleware has the middleware.fileSystem API that exposes the in-memory filesystem, which webpack put the generated files.

I'm not exactly familiar with express js, but this is my solution: https://gist.github.com/maman/8e91e6cb4ca9feaa4290

from webpack-dev-middleware.

roblafeve avatar roblafeve commented on May 1, 2024

@maman thank you, sir—this was just what I needed!

from webpack-dev-middleware.

chollier avatar chollier commented on May 1, 2024

I was trying to do that and it worked like a charm !

It would be cool to maybe get that when passing historyApiFallback: true

from webpack-dev-middleware.

anselmo avatar anselmo commented on May 1, 2024
  • gold -> Wondering if this should this be reference in docs.

from webpack-dev-middleware.

cef62 avatar cef62 commented on May 1, 2024

@maman you saved me a lot of time! thank you!

from webpack-dev-middleware.

frederickfogerty avatar frederickfogerty commented on May 1, 2024

Thanks @maman. This should probably go in the docs somewhere. Leaving open until it's put in the docs

from webpack-dev-middleware.

kripod avatar kripod commented on May 1, 2024

Thank you for saving me a lot of time, even in 2016! I felt like this issue deserved a bump, and I'm looking forward for historyApiFallback to be added to the middleware's options.

from webpack-dev-middleware.

kripod avatar kripod commented on May 1, 2024

Oh no, it turns out that this solution doesn't work with koa...

from webpack-dev-middleware.

frederickfogerty avatar frederickfogerty commented on May 1, 2024

@kripod you can probably wrap the express middleware to make it work in koa

from webpack-dev-middleware.

SpaceK33z avatar SpaceK33z commented on May 1, 2024

I'll close this since #44 was also closed, for reasoning see that ticket.

from webpack-dev-middleware.

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.