UNPKG

reacthtmlpack

Version:

Added the missing piece of treating `index.html` as entry point in webpack bundles.

8 lines (6 loc) 180 B
import { default as fs, } from "fs"; export function readFileAsContent (filepath) { return fs.readFileSync(filepath, "utf8").trim();// trim to remove the newline before EOF }