gajus / gajus/write-file-webpack-plugin

Written file includes webpack-dev-server client modules

Open
#35 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
520
Forks
53
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.