|
il y a 3 ans | |
---|---|---|
.. | ||
README.md | il y a 3 ans | |
index.js | il y a 3 ans | |
package.json | il y a 3 ans |
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.