0.0.6 • Published 5 years ago

add-build-number-plugin v0.0.6

Weekly downloads
87
License
ISC
Repository
github
Last release
5 years ago

Add Build Number Plugin

Webpack plugin for add build number to files.

Install

npm install --save-dev add-build-number-plugin

Usage

In your webpack.config.js

const AddBuildNumberPlugin = require('add-build-number-plugin');

module.exports = {
    // ...
    plugins: [
        new AddBuildNumberPlugin({
            test: /(.*)\.(js|css|gz)/,
            needHash: /^prefix/,
            output: `$1.[hash].[build-number].$2`,
            buildNumber: process.env.BUILD_NUMBER
        })
    ]
};

module.exports = {
    // ...
    plugins: [
        new AddBuildNumberPlugin({
            test: /(.*)\.(js|css|gz)/,
            needHash: /^prefix/,
            output: `$1.[hash].[build-number].$2`,
            var: 'BUILD_NUMBER' // key from compilation
        })
    ]
};
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago