Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Build Time Rendering #4177

Closed
jantimon opened this issue Feb 2, 2017 · 6 comments
Closed

Feature Request: Build Time Rendering #4177

jantimon opened this issue Feb 2, 2017 · 6 comments

Comments

@jantimon
Copy link
Contributor

jantimon commented Feb 2, 2017

It would be nice to improve the current state of BTR (jantimon/html-webpack-plugin#579)

Right now there a following open issues:

  1. Extract Text Plugin does not work in child compilations (Extract Text Plugin does not work in child compilations webpack-contrib/extract-text-webpack-plugin#389)
  2. __dirname does not work (master/lib/NodeStuffPlugin.js does not work when used in child compiler #2978)
  3. __file does not work (master/lib/NodeStuffPlugin.js does not work when used in child compiler #2978)
  4. no way to define different globals for browser and build time rendering (Webpack DefinePlugin bleeds from child compilation into main compilation #2979)
sokra added a commit that referenced this issue Feb 3, 2017
allow to match on compiler name in rules

#4177
@sokra
Copy link
Member

sokra commented Feb 3, 2017

Could you take a look at the PR?

@jantimon
Copy link
Contributor Author

jantimon commented Feb 3, 2017

Wow this might fix #2979 and maybe also #2978 right?

@sokra
Copy link
Member

sokra commented Feb 3, 2017

And you can match different loaders on the modules in the child compilation. I.e. for the html plugin. style-loader -> null-loader

@jantimon
Copy link
Contributor Author

jantimon commented Feb 5, 2017

Wow that would be awesome - I'll give it a try asap I'm done with the webpack 1 to webpack 2 upgrade.

Could you add an example how to do that?

sokra added a commit that referenced this issue Feb 8, 2017
allow to match on compiler name in rules

#4177
sokra added a commit that referenced this issue Feb 15, 2017
allow to match on compiler name in rules

#4177
sokra added a commit that referenced this issue Feb 22, 2017
allow to match on compiler name in rules

#4177
sokra added a commit that referenced this issue Feb 22, 2017
allow to match on compiler name in rules

#4177
@webpack-bot
Copy link
Contributor

This issue had no activity for at least half a year.

It's subject to automatic issue closing if there is no activity in the next 15 days.

@webpack-bot
Copy link
Contributor

Issue was closed because of inactivity.

If you think this is still a valid issue, please file a new issue with additional information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants