Skip to content

Commit 9fbe97b

Browse files
authored
docs: fix for Webpack output.library and libraryTarget: 'window' (#212)
When building a library and use a multi entry config, only the last item in the entry array will be exposed. The example that was provided by the plugin would expose the webpack plugin serve client in the end file and it breaks the app
1 parent c747018 commit 9fbe97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ const options = { ... };
6565
module.exports = {
6666
// an example entry definition
6767
entry: [
68-
'app.js',
6968
'webpack-plugin-serve/client' // ← important: this is required, where the magic happens in the browser
69+
'app.js'
7070
]
7171
...
7272
plugins: [

0 commit comments

Comments
 (0)