raw loader for webpack Installation npm install raw-loader Usage var fileContent = require("raw!./file.txt"); // => returns file.txt content as string Documentation: Using loaders License MIT (http://www.opensource.org/licenses/mit-license.php)