@akqa-frontline/generate-injection-html-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.9.0-rc.1 • Public • Published

@akqa-frontline/generate-injection-html-webpack-plugin

GitHub npm (scoped)

this package is not yet fully documented

Generate html files with entry point assets

What does it do

This package generates HTML with marktup to load script and styles, for both modern and legacy builds

Install

Install this package and its peer dependencies:

npm install --save-dev --save-exact @akqa-frontline/generate-injection-html-webpack-plugin
npm install --save-dev --save-exact webpack

Usage

Add the plugin to your webpack configuration

// webpack.config.js

const {FrontlineGenerateInjectionHtmlWebpackPlugin} = require("@akqa-frontline/generate-injection-html-webpack-plugin")

const moduleWebpackConfiguration = {
    plugins: [
        new FrontlineGenerateInjectionHtmlWebpackPlugin({browserslistEnv: "modern"})
    ]
}

const noModuleWebpackConfiguration = {
    plugins: [
        new FrontlineGenerateInjectionHtmlWebpackPlugin({browserslistEnv: "legacy"})
    ]
}

module.exports = [moduleWebpackConfiguration, noModuleWebpackConfiguration]

Take a look at webpack-config for instructions on a more complete Frontline webpack configuration.

Contributing

Please refer to the contributing document.

License

ISC © AKQA

/@akqa-frontline/generate-injection-html-webpack-plugin/

    Package Sidebar

    Install

    npm i @akqa-frontline/generate-injection-html-webpack-plugin

    Weekly Downloads

    7

    Version

    0.9.0-rc.1

    License

    ISC

    Unpacked Size

    37.4 kB

    Total Files

    35

    Last publish

    Collaborators

    • dni