(dir)
| 200 | } |
| 201 | |
| 202 | function webpackBuild(dir) { |
| 203 | mkdirSync(join(dir, 'src'), { recursive: true }); |
| 204 | writeFileSync(join(dir, 'src', 'index.js'), "import CMS from 'decap-cms-app';\nCMS.init();\n"); |
| 205 | run('npm install webpack', 'npm install --no-audit --no-fund webpack@5 webpack-cli', dir); |
| 206 | // No config file and no flags: what a consumer gets from `npx webpack`. |
| 207 | run('npm webpack build', 'node node_modules/webpack-cli/bin/cli.js', dir); |
| 208 | } |
| 209 | |
| 210 | const INSTALLERS = { |
| 211 | npm(dir) { |