MCPcopy
hub / github.com/GrapesJS/grapesjs / buildWebpackArgs

Function buildWebpackArgs

packages/cli/src/utils.ts:55–61  ·  view source on GitHub ↗
(opts: Record<string, any>)

Source from the content-addressed store, hash-verified

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

Callers 4

utils.spec.tsFile · 0.90
serve.tsFile · 0.90
buildLocaleFunction · 0.90
buildWebpackFunction · 0.90

Calls 1

normalizeJsonOptFunction · 0.85

Tested by

no test coverage detected