Skip to content

Written file includes webpack-dev-server client modules #35

@hellochar

Description

@hellochar

Using inline mode, WriteFilePlugin is emitting the webpack-dev-server client entry code into my bundle:

// bundle.js

...my bundle...

+ansiHTML.setColors(colors);
+
+function createOverlayIframe(onIframeLoad) {
+       var iframe = document.createElement("iframe");
+       iframe.id = "webpack-dev-server-client-overlay";
+       iframe.src = "about:blank";
+       iframe.style.position
+... about 300k filesize of bundle code

I ship this bundle as a standalone artifact so obviously I can't have this emitted. I'd like the convenience of inline mode though; is that possible to support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions