Git Product home page Git Product logo

react-router-html-webpack-plugin's People

Contributors

greenkeeperio-bot avatar saiichihashimoto avatar

Watchers

 avatar  avatar  avatar

react-router-html-webpack-plugin's Issues

How do we hook into webpack's compilation process?

To resolve #14 and to resolve #15, we need to hook into the compilation process. Basically:

  • Webpack needs to run its loaders on the routes configuration
  • Webpack needs to load the routes config and use react-router-to-array to get the routes
  • Webpack needs to create an instance of html-webpack-plugin for each route

For the first two to happen, what do we do? A child compiler? Putting things into the proper step in the process? Will it have to do all this to the routes before the usual entry points or in parallel?

Use loaders on routes

Currently, the routes are simply being required directly, which is a poor experience. They need to go through webpack's system so it goes through the loaders, THEN we can grab the routes and use them.

Work within webpack watch mode

When loading the routes, react-router-html-webpack-plugin doesn't use webpack at all. It simply dumps its results into webpack. It needs to work within webpack watch mode as well, which implies that we need webpack to watch routes, recompile it on change, and run through the remaining steps.

Linked to #14

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.