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

Function webpackOptions

src/cli.ts:16–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14);
15
16const webpackOptions = yargs => {
17 yargs.positional('config', {
18 describe: 'webpack configuration options',
19 type: 'string',
20 default: '{}',
21 })
22 .positional('babel', {
23 describe: 'Babel configuration object',
24 type: 'string',
25 default: '{}',
26 })
27 .positional('targets', {
28 describe: 'Browser targets in browserslist query',
29 type: 'string',
30 default: '> 0.25%, not dead',
31 })
32 .positional('entry', {
33 describe: 'Library entry point',
34 type: 'string',
35 default: 'src/index',
36 })
37 .positional('output', {
38 describe: 'Build destination directory',
39 type: 'string',
40 default: 'dist',
41 })
42}
43
44export const createCommands = (yargs) => {
45 return yargs

Callers 1

createCommandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected