MCPcopy
hub / github.com/webpack/webpack / readFile

Function readFile

test/configCases/html/extract/index.js:6–7  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

4const page = require("./page.html");
5
6const readFile = (name) =>
7 fs.readFileSync(path.resolve(__dirname, name), "utf-8");
8
9// `output.htmlFilename` defaults to `output.filename` with `.js` swapped for
10// `.html`, mirroring the CSS pipeline. `[name]` in the template resolves to

Callers 3

index.jsFile · 0.70
deserializeFunction · 0.50
example.jsFile · 0.50

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected