0.0.3 • Published 3 years ago

add-file-webpack-plugin v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

介绍

webpack plugin 基于htmlwebpackplugin,加入插入文件脚本。

用法

yarn add add-file-webpack-plugin

webpack

  const AddFileWebpackPlugin = require('add-file-webpack-plugin');

  config.plugins.push(new AddFileWebpackPlugin({
      paths: [
        { type: 'js', url: `${process.env.VUE_APP_STATIC_PATH}/test.js`},
        { type: 'css', url: `${process.env.VUE_APP_STATIC_PATH}/test.css`}
      ]
    }));
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago