imports-loader

imports loader module for webpack

imports loader for webpack

require("imports?page=../pages/mypage,jQuery,config=>{size:50}!./file.js");
// adds below code the the file's source: 
//  var page = require("../pages/mypage"); 
//  var jQuery = require("jQuery"); 
//  var config = {size:50}; 

Documentation: Using loaders

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