1.0.1 • Published 6 years ago

webpack-addjq-plugin v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Assets Webpack Append jQuery v1.11.3 Plugin

This plugin allow you to append jQuery v1.11.3 to your assets with webpack

Requirements

  • node >= 6.9.4
  • webpack >= 2.2.0

Installation

npm install --save-dev webpack-addjq-plugin 

Or add it to your package.json

Usage

Add the plugin in your webpack.config.js:

'use strict';

const AssetsWebpackAddjqPlugin = require('webpack-addjq-plugin');

module.exports = {
  entry: 'buildname.js',
  output: {
    path: './build',
    filename: '[name].js'
  },
  plugins: [
    new AssetsWebpackAddjqPlugin ({
      header: true,
      footer: true
	  match: /buildname.js/
    })
  ]
};

This plugin take an object or an array of objects. Each object can take theses arguments:

[{
  [header: true,]
  [footer: flase,]
  [match: /buildname.js/] // optional: bundle's name must match this pattern
}]