adapter-arthurci-plugin

0.0.9 • Public • Published

adapter-arthurci-plugin

Install

npm install --save-dev adapter-arthurci-plugin

Usage

const HtmlWebpackPlugin = require('html-webpack-plugin');
const AdapterArthurCIPlugin = require('./adapter-arthurci-plugin')

module.exports = {
  entry: {
    index: "./index.ts",
    index_head: "./index.css" // add "_head" at the end to inject in head.
  },
  output: {
    path: "./dist",
    filename: "[name].bundle.js"
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: "./index.html",
      filename: "./dist/index.html",
      chunks: ["index", "index_head"]
    }),
    new AdapterArthurCIPlugin(options)
  ]
}

Options

name type required description
path {string} true 静态文件路径
templates {array} false 指定需要处理的模板(undefined 默认全部处理)
deleteOrigin {boolean} false 是否删除原文件

Readme

Keywords

none

Package Sidebar

Install

npm i adapter-arthurci-plugin

Weekly Downloads

1

Version

0.0.9

License

ISC

Unpacked Size

3.96 kB

Total Files

3

Last publish

Collaborators

  • chang996688