0.0.3 • Published 3 years ago

roninwz-plugin v0.0.3

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

roninwz-plugin

查看打包后文件列表大小插件

安装

npm i roninwz-plugin -D

webpack 使用

const path = require("path");
const FileListPlugin = require("roninwz-plugin");
module.exports = {
  target: "node",
  mode: "development",
  entry: "./index.js",
  output: {
    path: path.resolve(__dirname, "./dist"),
    filename: "[name].js",
  },
  plugins: [
    new FileListPlugin({
      filename: "list.md",
    }),
  ],
};

vue-cli3 使用

const FileListPlugin = require("roninwz-plugin");
module.exports = {
  configureWebpack: (config) => {
    // 使用打包后生成文件可看文件大小插件
    config.plugins.push(
      new FileListPlugin({
        filename: "list.md",
      })
    );
  },
};
0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago