|
před 4 roky | |
---|---|---|
.. | ||
README.md | před 4 roky | |
index.js | před 4 roky | |
package.json | před 4 roky |
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.