0.1.10 • Published 5 years ago

patchjs-webpack-plugin v0.1.10

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

Patch.js for Webpack

Introduction

This plug-in is used to calculate the difference between the two files at the build stage.

Installation

npm install patchjs-webpack-plugin --save-dev

How to use

var path = require('path');
var PatchjsWebpackPlugin = require('patchjs-webpack-plugin');

module.exports = {
  entry: {
    example: './example.js'
  },
  output: {
    path: path.join(__dirname, 'dist'),
    filename: '[name].js'
  },
  module: {
    loaders: [
      { test: /\.css$/, loader: 'style-loader!css-loader' }
    ]
  },
  plugins: [
    new PatchjsWebpackPlugin({increment: true, path: 'http://static.domain.com/path/to/'})
  ]
};

Options

increment Boolean

default false

It enables the incremental build.

count Number

default 5

how many incremental versions are build.

path String

the URL prefix of a static file, recommended to use the production environment URL.

eg:

URL: http://static.domain.com/path/to/1.0.0/file.js

path : http://static.domain.com/path/to/

timeout Number

default 30000ms

request timeout value.

validateVersion Boolean

default false

check whether the current version is deployed.

Others

if you used optimize-css-assets-webpack-plugin,please filter diff file by assetNameRegExp.

0.1.10

5 years ago

0.1.10-beta

5 years ago

0.1.9

5 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.6-beta.1

6 years ago

0.1.6-beta

6 years ago

0.1.5

6 years ago

0.1.5-beta

6 years ago

0.1.4

6 years ago

0.1.4-beta

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago