GithubHelp home page GithubHelp logo

Comments (7)

bebraw avatar bebraw commented on May 20, 2024

Cool, thanks for pointing that out! I'll get this fixed.

from react-book.

bebraw avatar bebraw commented on May 20, 2024

@jantimon Thanks! I simplified the section a lot (realized no template is needed in this case). Speaking of which is there a nice way to generate dev server index.html through html-webpack-plugin dynamically? It's not nice having to drag that in the project.

from react-book.

jantimon avatar jantimon commented on May 20, 2024

Hm actually I meant you might want to use inject:true for custom templates but this also a simpler approach ;)
I don't understand however what you mean by dynamically generated dev files - the plugin adds it to the webpack assets. So it should be there on the dev server too. Is it missing?

from react-book.

bebraw avatar bebraw commented on May 20, 2024

Hm actually I meant you might want to use inject:true for custom templates ;)

Ah. Anyway, much simpler now. 👍

I don't understand however what you mean by dynamically generated dev files - the plugin adds it to the webpack assets. So it should be there on the dev server too. Is it missing?

If you look at my boilerplate, you can see there's dev-server/index.html hanging around. That's something I want to eliminate. I have a feeling export-files-webpack-plugin might be needed here. Just playing around with this.

from react-book.

bebraw avatar bebraw commented on May 20, 2024

If you check out that plugin, you can see the core of the issue:

You might use some file-generating plugins on production (e.g. HTML Webpack Plugin), but it would be useless on development, as dev-server is not actually saving any files on the disk.

from react-book.

jantimon avatar jantimon commented on May 20, 2024

Should not be needed should work right away without your dev-server/index.html just open the index.html in the same folder where your javascript is

from react-book.

bebraw avatar bebraw commented on May 20, 2024

@jantimon Can you hit me through gitter? Opened a chat there. We can probably resolve the issue faster that way. Likely just missing something simple here.

from react-book.

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.