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 prefer hot from cli #2617

Merged
merged 1 commit into from
May 19, 2020
Merged

Fix prefer hot from cli #2617

merged 1 commit into from
May 19, 2020

Conversation

alexander-akait
Copy link
Member

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Yes

Motivation / Use-Case

Resolve TODO

Breaking Changes

Yes

Additional Info

No

BREAKING CHANGE: the `hot` value prefers from CLI over the configuration
@alexander-akait alexander-akait changed the base branch from master to v4 May 19, 2020 13:47
const hasHotOnly = typeof argv.hotOnly !== 'undefined';

if (hasHot || hasHotOnly) {
options.hot = hasHotOnly ? 'only' : argv.hot;
Copy link
Member Author

Choose a reason for hiding this comment

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

argv-parser doesn't support multiple types for argument so for compatibility we have --hot and --hot-only, anyway we should deprecate our CLI in v4 in favor webpack server (webpack-cli), so we can do it safely

@codecov
Copy link

codecov bot commented May 19, 2020

Codecov Report

Merging #2617 into v4 will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v4    #2617      +/-   ##
==========================================
+ Coverage   92.25%   92.26%   +0.01%     
==========================================
  Files          34       34              
  Lines        1317     1319       +2     
  Branches      370      371       +1     
==========================================
+ Hits         1215     1217       +2     
  Misses         97       97              
  Partials        5        5              
Impacted Files Coverage Δ
lib/utils/createConfig.js 95.40% <100.00%> (+0.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7fbc635...f640b3d. Read the comment docs.

@alexander-akait alexander-akait merged commit 25cc479 into v4 May 19, 2020
@alexander-akait alexander-akait deleted the fix-prefer-hot-from-CLI branch May 19, 2020 14:23
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.

1 participant