var fileContent = require("raw!./file.txt");
// => returns file.txt content as string
Don't forget to polyfill require
if you want to use it in node.
See webpack
documentation.
var fileContent = require("raw!./file.txt");
// => returns file.txt content as string
Don't forget to polyfill require
if you want to use it in node.
See webpack
documentation.
npm i raw-loader@0.1.5
0.1.5
MIT