Giter Club home page Giter Club logo

auxpack's Introduction

中文

auxpack

GitHub license npm GitHub issues GitHub forks npm

auxpack is the new configurable Webpack plugin that monitors statistics from your production builds. Our interactive interface allows developers to better understand bundle composition to get a better grasp on optimization strategies.

http://auxpack.com

Installation

Install via npm i -D auxpack

Setup

// webpack.config.js

const Auxpack = require('auxpack'); // import auxpack

modules.exports = [
// other configurations
  ... 
  plugins: [
    ...
    new Auxpack(  // add Auxpack into plugins
      {
        PORT: 1111, // configurable PORT
        targetFile: 'aux-stats', // configurable output filename
        logMe: true, // configure with true to console.log the current build's aux-stats
      }
    ),
  ]
  ...
]

Usage

By installing the plugin into your Webpack configuration, you can run webpack within your scripts as you would in production bundling, and our plugin will launch on port 1111. (or your chosen port in webpack.config.js)

Please note that collecting information on your first auxpack build may take a moment; this occurs due to our plugin collecting data.

Contributing

To contribute to auxpack, please fork this repository, clone it to your machine, then install dependencies with npm install auxpack or yarn add auxpack. If you're interested in joining the auxpack team as a contributor, feel free to message one of us directly!

Authors

webpack-monitor

Many thanks to Webpack Monitor for passing the torch. https://github.com/webpackmonitor/webpackmonitor

License

This project is licensed under the MIT license - see the LICENSE.md file for details

中文翻译

auxpack是可配置的Webpack插件,用于监视生产版本中的统计信息。 我们的应用程序使开发人员可以更好地了解打包组成,从而更好地掌握优化策略。

安装方式

npm i -D auxpack

设定

在webpack.config.js里:

// webpack.config.js
const Auxpack = require('auxpack'); // <--- 引入auxpack
modules.exports = [
// other configurations
  ... 
  plugins: [
    ...
    new Auxpack(  // 向 plugins 属性传入 new 实例
      {
        PORT: 1111, 
        targetFile: 'aux-stats', // configurable output filename
        logMe: true, // configure with true to console.log the current build's aux-stats
      }
    ),
  ]
  ...
]

用法

webpack运行后我们的插件会在1111端口里运行。

贡献

请fork这个资源库, 把仓库克隆在您的计算机上创建本地副本,然后用npm install auxpackyarn add auxpack 下载依赖。如果您想加入我们的团队,请直接发讯息给我们。

auxpack's People

Contributors

connielion avatar najito avatar stephkchiu avatar tm-clark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.