UNPKG

html-webpack-include-sibling-chunks-plugin

Version:

This plugin is useful when bundling a Multiple-Page Application with webpack 4. It let `html-webpack-plugin` to include initial split chunks and runtime chunk that related to the entry js file of a html page, which are generated by `optimization.splitChun

34 lines (28 loc) 693 B
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> <meta name="format-detection" content="telephone=no"> <link rel="icon" type="image/png" href="/favicon.png"> <title>foo</title> </head> <body> <div class="foo"> <h1>Page Foo</h1> <pre></pre> <p> <a href="/bar.html">goto /bar.html</a> </p> <p> <a href="/bar/baz.html">goto /bar/baz.html</a> </p> <p> <img src="smallpic.png"> </p> <p> <img src="largepic.png"> </p> </div> </body> </html>