Skip to content
New issue

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

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

Already on GitHub? # to your account

ci: webpack@5 test #459

Merged
merged 1 commit into from
Aug 30, 2019
Merged

ci: webpack@5 test #459

merged 1 commit into from
Aug 30, 2019

Conversation

alexander-akait
Copy link
Member

@alexander-akait alexander-akait commented Aug 29, 2019

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

test on webpack@5

Breaking Changes

No

Additional Info

No

@alexander-akait alexander-akait force-pushed the ci-webpack-5-test branch 3 times, most recently from 2862563 to d172ee6 Compare August 29, 2019 12:07
@alexander-akait
Copy link
Member Author

/cc @hiroppy We need use other hook for ``writeToFileinsteademit`, for example `assetEmitted` and write file if condition true, i think we can rewrite this for webpack@4 too

@codecov
Copy link

codecov bot commented Aug 29, 2019

Codecov Report

Merging #459 into master will increase coverage by 0.33%.
The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #459      +/-   ##
==========================================
+ Coverage   97.01%   97.35%   +0.33%     
==========================================
  Files           7        7              
  Lines         302      302              
  Branches      101      100       -1     
==========================================
+ Hits          293      294       +1     
+ Misses          9        8       -1
Impacted Files Coverage Δ
lib/fs.js 96.61% <92.85%> (+1.69%) ⬆️

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 4ee0f29...6420e42. Read the comment docs.

if (queryStringIdx >= 0) {
targetFile = targetFile.substr(0, queryStringIdx);
}
// TODO Why? Need remove in future major release
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove this when we release the next version?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, i think we should drop this in next major, i keep this because i can't understand why it is here 😕 Any ideas?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it's a good idea which is keeping. I don't know why...
We'll drop this at other pr.

}

return fs.writeFile(targetPath, content, (writeFileError) => {
if (writeFileError) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we output Unable to write asset to disk: xxx as an error?

Copy link
Member Author

@alexander-akait alexander-akait Aug 30, 2019

Choose a reason for hiding this comment

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

I think it is unnecessary, we should fail compilation if something not written as expected, because it is potentially break application because file(s) can be used in backend

Copy link
Member

Choose a reason for hiding this comment

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

ok, agree with you.

Copy link
Member

@hiroppy hiroppy left a comment

Choose a reason for hiding this comment

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

thanks!

@alexander-akait alexander-akait merged commit 5c90e1e into master Aug 30, 2019
@alexander-akait alexander-akait deleted the ci-webpack-5-test branch August 30, 2019 12:41
@pi0 pi0 mentioned this pull request Aug 31, 2019
22 tasks
@redbugz
Copy link

redbugz commented Sep 3, 2019

This seems to have broken our dev server. We have writeToFile set to true, but with 3.7.1 we no longer get any files written.
I added some logging statements, and the compiler.hooks.emit.tap callback is called, but the compiler.hooks.assetEmitted.tapAsync callback never seems to get called.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants