mini-html-webpack-plugin

  • Version 3.1.3
  • Published
  • 16.9 kB
  • 1 dependency
  • MIT license

Install

npm i mini-html-webpack-plugin
yarn add mini-html-webpack-plugin
pnpm add mini-html-webpack-plugin

Overview

A miniature version of html-webpack-plugin with only necessary features

Index

Functions

function defaultTemplate

defaultTemplate: ({
css,
js,
publicPath,
title,
htmlAttributes,
head,
body,
cssAttributes,
jsAttributes,
}: TemplateParameters) => string;

    function generateAttributes

    generateAttributes: (attributes?: {}) => string;

      function generateCSSReferences

      generateCSSReferences: ({
      files,
      publicPath,
      attributes,
      }: {
      files: string[];
      publicPath: string;
      attributes: (Attributes & { rel?: string }) | undefined;
      }) => string;

        function generateJSReferences

        generateJSReferences: ({
        files,
        publicPath,
        attributes,
        }: {
        files: string[];
        publicPath: string;
        attributes: Attributes | undefined;
        }) => string;

          Classes

          class MiniHtmlWebpackPlugin

          class MiniHtmlWebpackPlugin implements WebpackPluginInstance {}

            constructor

            constructor(options: Options);

              method apply

              apply: (compiler: webpack.Compiler) => void;

                Package Files (1)

                Dependencies (1)

                Dev Dependencies (17)

                Peer Dependencies (1)

                Badge

                To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/mini-html-webpack-plugin.

                • Markdown
                  [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/mini-html-webpack-plugin)
                • HTML
                  <a href="https://www.jsdocs.io/package/mini-html-webpack-plugin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>