raw-loader

raw loader module for webpack

raw loader for webpack

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.

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