Skip to content

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

@travislaynewilson

Description

@travislaynewilson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions