vant-weapp/build/dev.mjs
landluck 5e87650fe2
fix(slider): fix slider can't swipe (#5079)
Co-authored-by: liuhaihonggia <liuhaihong@youzan.com>
2022-10-31 13:05:36 +08:00

18 lines
517 B
JavaScript

import { dirname, resolve } from 'path';
import { fileURLToPath } from 'url';
import { dev } from '@vant/cli/lib/commands/dev.js';
import { exec } from 'child_process';
const __dirname = dirname(fileURLToPath(import.meta.url));
const gulpConfig = resolve(__dirname, './compiler.js');
async function run() {
await dev();
const p = exec(`npx gulp -f ${gulpConfig} buildExample --color`);
p.stdout.on('data', (stdout) => console.info(stdout));
p.stderr.on('data', (stderr) => console.info(stderr));
}
run();