1.0.2 • Published 7 years ago

prepend-webpack-plugin v1.0.2

Weekly downloads
51
License
ISC
Repository
github
Last release
7 years ago

webpack-prepend-plugin

Prepends file's contents to each entry chunk. Used for prepending javascript error tracking code so it would be initialized as early as possible.

Usage

Install via npm:

npm install prepend-webpack-plugin

And then require and provide to webpack:

// in webpack.config.js or similar
var PrependPlugin = require('prepend-webpack-plugin');

module.exports = {
  // your config values here
  plugins: [
    new PrependPlugin({
      filePath: require.resolve('trackjs')
    })
  ]
};

Options

filePath

Path of file to prepend

1.0.2

7 years ago

1.0.1

7 years ago

2.0.0

7 years ago

1.0.0

8 years ago