Replies: 1 comment 1 reply
-
|
More details here: jantimon/html-webpack-plugin#1590 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My main compilation targeted to browser. But I would like to have plugin that compiles and executes JS in node (actually I am trying to fix HtmlWebpackPlugin). So I need to configure child compilation to be targeted to node. How I can do that?
I found
NodeTargetPluginbut it do only half of configuration - it switches target, but it do nothing with resolve configuration.What I mean by "do nothing with resolve configuration"... Let me provide expmple: I am trying to import
styled-componentsin file which I am compiling by child compiler with appliedNodeTargetPlugin. And when I do this, Webpack usesstyled-components.browser.esm.js(this file declared inpackage.jsonin"browser" field). But in my expectations Webpack should pickstyled-components.esm.js(not.brower.esm.js) because I useNodeTargetPlugin.What should I do to force child compilation to use
styled-components.esm.jsinstead ofstyled-components.browser.esm.js?Beta Was this translation helpful? Give feedback.
All reactions