MCPcopy Create free account
hub / github.com/webpack/webpack-cli / readFromWebpackConfig

Function readFromWebpackConfig

test/create-webpack-app/init/init.test.js:86–87  ·  view source on GitHub ↗
(path, filename = "webpack.config.js")

Source from the content-addressed store, hash-verified

84
85// Helper to read from webpack.config.js or webpack.config.ts in a given path
86const readFromWebpackConfig = (path, filename = "webpack.config.js") =>
87 readFileSync(join(path, filename), "utf8");
88
89describe("create-webpack-app cli", () => {
90 let dir;

Callers 1

init.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected