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

Entries with relative paths for names not creating bundles in WDS #715

Closed
travislaynewilson opened this issue Dec 15, 2016 · 2 comments
Closed

Comments

@travislaynewilson
Copy link

travislaynewilson commented Dec 15, 2016

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
I'm using Webpack to bundle an Angular 2 app. I need my bundles placed in different folders of the target folder, so I'm using relative paths for the name of each of my entry:

entry: {
    '/lib/polyfills': './src/polyfills.browser.ts',
    '/lib/vendor': './src/vendor.browser.ts',
    '/v/app/main': './src/main.browser.ts'
}

I know this isn't documented, but I've seen this solution online and it works well for me. All is working when using webpack, but when I use WDS, the bundles are never created.

What is the expected behavior?
Similar to how Webpack places the bundles in the path specified by the entry name, I'd expect WDS to do the same in memory.

If the current behavior is a bug, please provide the steps to reproduce.
See https://gist.github.com/travislaynewilson/d8f680989cf7641f353d9be44f41d9bd

Webpack Dev Server version
2.1.0-beta.11

Webpack version
2.1.0-beta.27

Operating system
Windows 10

@SpaceK33z
Copy link
Member

This is probably a bug in webpack-dev-middleware. There is a test suite for generating these kind of url's, see here.

Would you be interested in creating a PR for this? Best way to do this would be to add a failing test case and try to fix it. If you can't fix it, submitting a failing test case is also fine.

@shellscape
Copy link
Contributor

Closing due to age and inactivity.

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

No branches or pull requests

3 participants