Skip to content

Conversation

@coleengbrecht
Copy link

Added support for node

{
mode: "development",
target: "web",
target: "node",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should make two different webpack config files. One for webpacking for node and one for web. Maybe webpack.node.config.js and webpack.web.config.js and then have two separate scripts in package.json for building each. Probably want to configure each to build a different .min.js file for each too.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's probably a good idea

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I wonder how other libraries handle this such that you can reference a single npm module for both. I think for now two versions of webpack.config is probably most efficient, but I would like to see if there's something inherently more efficient for this...

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants