MCPcopy Create free account
hub / github.com/GrapesJS/cli / buildWebpackArgs

Function buildWebpackArgs

src/utils.ts:58–64  ·  view source on GitHub ↗
(opts: Record<string, any>)

Source from the content-addressed store, hash-verified

56}
57
58export const buildWebpackArgs = (opts: Record<string, any>) => {
59 return {
60 ...opts,
61 babel: normalizeJsonOpt(opts, 'babel'),
62 htmlWebpack: normalizeJsonOpt(opts, 'htmlWebpack'),
63 }
64}
65
66export const copyRecursiveSync = (src: string, dest: string) => {
67 const exists = fs.existsSync(src);

Callers 3

serve.tsFile · 0.90
buildLocaleFunction · 0.90
buildWebpackFunction · 0.90

Calls 1

normalizeJsonOptFunction · 0.85

Tested by

no test coverage detected