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

fix(node): allow use multiple config in custom webpack configuration file #9458

Closed
wants to merge 138 commits into from

Conversation

sidmonta
Copy link
Contributor

When use a custom configuration file for node webpack build target.
Allow running webpack with multiple configuration options.

Current Behavior

Assigning a custom webpack configuration file does not support the ability to use multiple configurations, as webpack allows.

Expected Behavior

Being able to define multiple configurations in my custom webpack.config.ts file to feed to webpack

Related Issue(s)

Fixes #9453

…guration file

When use a custom configuration file for webpack build target allow to run webpack with
multiple
configuration options.
ISSUES CLOSED: nrwl#9186
…file

When use a custom configuration file for node webpack build target.
allow running webpack with
multiple configuration options

ISSUES CLOSED: nrwl#9453
@nx-cloud
Copy link

nx-cloud bot commented Mar 22, 2022

@vercel
Copy link

vercel bot commented Mar 22, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nrwl/nx-dev/EEThfjTzuD1oycX85xB16up2kSS3
✅ Preview: Canceled

[Deployment for 665df06 canceled]

@everops-kalarrs
Copy link

Just noticed this will be a conflict with my PR which introduces async for custom configurations.
#9641

@sidmonta maybe we can combine these?

@sidmonta
Copy link
Contributor Author

sidmonta commented Apr 1, 2022

Hi @everops-kalarrs, thanks for the heads up. I saw your pull request and maybe I missed something, but I don't see any functional conflicts. The only change I made in the part that you also changed concerns the specification of the Config type which in both cases remains the same.

So definitely we can combine the changes, it should be enough either on my end to remove the specification or on your end to add it.

If I missed something, sorry, and report it to me without any problem.

Coly010 and others added 21 commits April 2, 2022 12:21
…d webpack Plugins (DefinePlugin) (nrwl#9460)

ISSUES CLOSED: nrwl#7924

Co-authored-by: Nicholas Cunningham <ndcunningham>
* fix(js): add swc/helpers to js packages on converting to swc

* chore(js): update convert to swc unit test

* chore(js): format

Co-authored-by: Chau Tran <ctran@Chaus-MacBook-Pro.local>
Coly010 and others added 24 commits April 2, 2022 12:21
* feat(dep-graph): add dark mode

Squashed commits:

feat(dep-graph): Updating tailwind config file.

As of version 3.0 higher tailwind jit mode is default. Instead of purge is now content and as dark mode will be added as class.

feat(dep-graph): Enabling toggable dark mode.

As darkmode (tailwind.congig.json) is set as class, we need to add the script to the head tag on index.html.
see: https://tailwindcss.com/docs/dark-mode

feat(dep-graph): Adding theme Initializer and creating support functions

All functions related to theme changing and initialization are located on the theme-resolver.tsx
The themeInit function will run when page is loaded and apply add class to the <html> tag as dark or light accordignly. Theme resolver applies the changes and keeps localstorage and <html class> in sync.

feat(dep-graph): Adding theme panel

The pannel allows users to switch themes. Currently it only changes the html class and localstorage.

feat(dep-graph): Creating tailwind dark colors pallete

The current colors remain as light. The dark colors are an attempt to contrast the light ones.

feat(dep-graph): Adding additional styles to sidebar

feat(dep-graph): Define styling presets for darkmode to allow consistent and concise classNames.

feat(dep-graph): Apply dark styling classes to sidebar

feat(dep-graph): Added dark mode styles to the debugger

feat(dep-graph): Added Color to tailwind config and adjusting imports.

feat(dep-graph): Created theme tracker

feat(dep-graph): Added dark classes to graph container

feat(dep-graph): Adjusted some edge styles for better UX. Added dynamic selection of colors according to the current theme.

feat(dep-graph):  Added transition when switching themes.

feat(dep-graph): Readded auto roation for implicit label and dynamic background.

feat(dep-graph): Assigned generic types to selectDynbamically, and added new color to the pallete.

feat(dep-graph): Added dynamic styles for theming.

feat(dep-graph): Added mock for matchMedia. Tests will fail otherwise.

feat(dep-graph): Added styles to tippy.

feat(dep-graph): Moved theme related functions to theme-resolver file

feat(dep-graph): Implement dark mode on tooltips.

feat(dep-graph): re-evaluate graph colors on theme change

cleanup(dep-graph): Removed duplicate style

chore(dep-graph): Testing theme preferences

Adding test cases for theme initialization, and the ability to change.

cleanup(dep-graph): removing repeated style classes

Fixed issue with webpack plugin (nrwl#8231)

feat(npm): resolved issue with live reload failing

Fixed the issue with live reload when adding scripts in project.json

Closes nrwl#8230

chore(repo): update nx to 13.10.0-beta.1 (nrwl#9407)

feat(dep-graph): re-evaluate graph colors on theme change

fix(dep-graph): use theme background color in image download

* fix(dep-graph): change dark mode styles

* cleanup(dep-graph): cleanup e2e tests and naming

Co-authored-by: Philip Fulcher <philip@nrwl.io>
* chore(core): use optional chaining

* chore(core): chore(core): chore(core): use optional chaining

* chore(core): use optional chaining

* feat(core): chore(core): chore(core): use optional chaining

* chore(core): chore(core): use optional chaining

* chore(core): chore(core): chore(core): use optional chaining

* chore(core): chore(core): use optional chaining

* chore(core): chore(core): use optional chaining
* cleanup(misc): replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* fix(js): fix slice change

Co-authored-by: Jason Jean <jasonjean1993@gmail.com>
@nartc
Copy link
Contributor

nartc commented May 12, 2022

@sidmonta I think something's up with this PR. It shouldn't be 1000+ files changed should it?

@sidmonta
Copy link
Contributor Author

Hi @nartc, you're right, I messed up by not making a separate branch. I close this pull request and open another one with only my changes.

@sidmonta sidmonta closed this May 12, 2022
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@nx/node:webpack Cannot export multiple configurations