1.0.1 • Published 7 years ago

@chenxinle/html-webpack-plugin-custom v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

html-webpack-plugin-custom

a webpack plugin to insert custom js and css to html

Getting Started

  npm install --save-dev @chenxinle/html-webpack-plugin-custom 

USAGE

  var htmlWebpackPluginCustom = require('@chenxinle/html-webpack-plugin-custom')

  var webpackConfig = {   
    plugins: [   
      new htmlWebpackPluginCustom({   
        js: [   
          // put all the js you want insert into the html, each array item is the script src   
          // example: build_config.cdnHost + 'font-awesome/js/font-awesome.js'   
        ],   
        css: [   
           // put all the css you want insert into the html, each array item is the link src   
          // example: build_config.cdnHost + 'font-awesome/css/font-awesome.css'   
        ]   
      }),   
    ]   
  }