0.0.9 • Published 4 years ago

adapter-arthurci-plugin v0.0.9

Weekly downloads
5
License
ISC
Repository
-
Last release
4 years ago

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

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

4 years ago

0.0.1

4 years ago