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: allow for same filenames to be added #401

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

daKmoR
Copy link
Collaborator

@daKmoR daKmoR commented Mar 2, 2019

This PR contains a:

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

Motivation / Use-Case

fixes #400

Additional Info

adds a hash to the webpack entry list so same filenames can exist.

@daKmoR
Copy link
Collaborator Author

daKmoR commented Mar 3, 2019

@matthieu-foucault hey, would you be so kind and release this? 🤗 pretty please 🤗

@matthieu-foucault
Copy link
Collaborator

matthieu-foucault commented Mar 3, 2019 via email

@@ -65,7 +83,7 @@ function configToWebpackEntries(config) {

const webpackEntries = {};
filteredFiles.forEach((filePath) => {
webpackEntries[path.parse(filePath).name] = filePath;
webpackEntries[getPathKey(filePath)] = filePath;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this?
Can't we just use filePath as the attribute key?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is the key that webpack uses internally... it does not like '/' in it...
also it is the url that get's displayed when you build... so if that is too long it's quite annoying 🙈

@stevenvachon
Copy link

Can we merge this, please?

@matthieu-foucault matthieu-foucault merged commit 80ce2d8 into codymikol:next Mar 7, 2019
@matthieu-foucault
Copy link
Collaborator

✔️ Published under karma-webpack@dev

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