Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

malykhinvi/imports-loader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Note: Not relevant anymore. Use the latest version of original imports-loader

imports loader for webpack

This is the fork of original https://github.com/webpack/imports-loader repository. The only difference is that it fixes webpack-contrib#5 issue.

Installation

npm install @malykhinvi/imports-loader

Usage

Given you have this file example.js

$("img").doSomeAwesomeJqueryPluginStuff();

then you can inject the $ variable into the module by configuring the imports-loader like this:

require("@malykhinvi/imports-loader?$=jquery!./example.js");

This simply prepends var $ = require("jquery"); to example.js.

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

imports loader module for webpack

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%