L-Chris / html-webpack-enhance-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html-webpack-enhance-plugin

enhance html-webpack-plugin features

Install

// v1 support webpack3
// v2 support webpack4
npm i html-webpack-enhance-plugin -D
yarn add html-webpack-enhance-plugin -D

✨ Features:

  • override publicPath options in webpack config

Usage

webpack.config.js

const HtmlWebpackPlugin = require('html-webpack-plugin')
const HtmlWebpackEnhancePlugin = require('html-webpack-enhance-plugin')

module.exports = {
  plugins: [
    new HtmlWebpackPlugin(),
    new HtmlWebpackEnhancePlugin({
      publicPath: ''
    })
  ]
}

About

License:MIT License


Languages

Language:JavaScript 100.0%