npm install @microsoft/loader-raw-script --save-dev
This simple loader loads a script file's contents directly in a webpack bundle using an eval(...)
.
require("@microsoft/loader-raw-script!path/to/script.js");
npm install @microsoft/loader-raw-script --save-dev
This simple loader loads a script file's contents directly in a webpack bundle using an eval(...)
.
require("@microsoft/loader-raw-script!path/to/script.js");