provide-always-loader

1.1.1 • Public • Published

provide-always-loader

This loader does the same as ProvidePlugin, except it always does the injection without checking for a free variable. This means that even modules that use var x = ... at the file scope would have x injected into them.

Installation

npm install --save-dev provide-always-loader

Usage

module.rules: [
	{
		test: /\.js$/,
		use: [
			{
				loader: 'provide-always-loader',
				globals: [
					'global1',
					'global2',
					'etc'
				]
			}
		]
	}
]

Package Sidebar

Install

npm i provide-always-loader

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • configurator