1.0.0 • Published 6 years ago

webpack-fullhtml-plugin v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

webpack-fullhtml-plugin

  • Tiny plugin,
  • Simple usage
  • Full custom options

###Usage :

import FullHTMLPlugin from 'webpack-fullhtml-plugin';

new FullHTMLPlugin({
  title: `example page`,
  css: ['./reset.css', './style.css'],
  classNames: 'class-1 class-2',
  htmlNodeId: 'exemple-id',
  js:  ['./commons.js', './bundle.js'],
  filename: `./path/index.html`
}); 

###Output :

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>example page</title>
        <link rel="stylesheet" type="text/css" href="./reset.css"/>
        <link rel="stylesheet" type="text/css" href="./style.css"/>
    </head>
    <body>
        <div class="example-scene"></div>
        <script type="text/javascript" src="./commons.js"></script>
        <script type="text/javascript" src="./bundle.js"></script>
    </body>
</html>

Multiple Html output

to have more output you just need to duplicate the instantiation of the plugin

new FullHTMLPlugin(...options); 
new FullHTMLPlugin(...options); 
new FullHTMLPlugin(...options); 

Licence

MIT

Author

Hajji Tarik

1.0.0

6 years ago

0.1.20

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.21

6 years ago

0.0.2

6 years ago

0.0.10

6 years ago

0.0.1

6 years ago