MCPcopy Create free account
hub / github.com/preactjs/preact-cli / read

Function read

packages/cli/src/lib/webpack/render-html-plugin.js:14–16  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

12let defaultTemplate = resolve(__dirname, '../../resources/template.html');
13
14function read(path) {
15 return readFileSync(resolve(__dirname, path), 'utf-8');
16}
17
18module.exports = async function (config) {
19 const { cwd, dest, isProd, src } = config;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…