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 default manifest file mapping (path to name) #71

Merged
merged 2 commits into from
Aug 14, 2017
Merged

Fix default manifest file mapping (path to name) #71

merged 2 commits into from
Aug 14, 2017

Conversation

frequin
Copy link
Contributor

@frequin frequin commented Aug 14, 2017

closes #70

@frequin frequin mentioned this pull request Aug 14, 2017
@mastilver
Copy link
Contributor

Thank you @frequin , I think you are right, I must have inverted something here...

But it's not in the reduce
Could you rebase on 1.x branch and add a test so it doesn't happens in the future :)

@mastilver mastilver changed the base branch from master to 1.x August 14, 2017 09:23
@mastilver
Copy link
Contributor

@frequin
Copy link
Contributor Author

frequin commented Aug 14, 2017

@mastilver rebased and fixed. I'll add a test asap.

@mastilver
Copy link
Contributor

@codecov-io
Copy link

codecov-io commented Aug 14, 2017

Codecov Report

Merging #71 into 1.x will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              1.x      #71   +/-   ##
=======================================
  Coverage   98.66%   98.66%           
=======================================
  Files           2        2           
  Lines          75       75           
=======================================
  Hits           74       74           
  Misses          1        1
Impacted Files Coverage Δ
lib/plugin.js 98.64% <ø> (ø) ⬆️

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 4c7c166...500a10d. Read the comment docs.

expect(manifest).toBeDefined();
expect(manifest).toEqual({
'main.js': 'main.js',
'file.txt': assetOutputFilename
Copy link
Contributor

Choose a reason for hiding this comment

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

'file.txt': stats.hash + '.txt'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well stats.hash is related to the bundle hash while [hash] from the file-loader name is related to the file content. So it does not fit.
Do you see another way ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or instead of a hash, I can use file-loader?name=outputfile.[ext] ? What do you think ?

Copy link
Contributor

Choose a reason for hiding this comment

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

As long as key and value are different, I'm happy :)

@frequin
Copy link
Contributor Author

frequin commented Aug 14, 2017

@mastilver There it is :)

@mastilver mastilver merged commit 02cbd20 into shellscape:1.x Aug 14, 2017
@mastilver
Copy link
Contributor

Great, Thank you @frequin

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.

3 participants