Exports variables from inside the file by appending exports[...] = ...
statements..
npm i exports-loader --save
require("exports-loader?file,parse=helpers.parse!./file.js");
// 向文件源码添加如下代码:
// exports["file"] = file;
// exports["parse"] = helpers.parse;
require("exports-loader?file!./file.js");
// 向文件源码添加如下代码:
// module.exports = file;
Juho Vepsäläinen | Joshua Wiens | Kees Kluskens | Sean Larkin |