mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 19:41:45 +08:00
13 lines
390 B
JavaScript
13 lines
390 B
JavaScript
require('./compiler');
|
|
const fs = require('fs-extra');
|
|
const path = require('path');
|
|
const serve = require('webpack-serve');
|
|
const config = require('./webpack.doc.dev');
|
|
const dist = path.join(__dirname, '../example/dist');
|
|
const icons = path.join(__dirname, '../node_modules/@vant/icons');
|
|
|
|
fs.removeSync(dist);
|
|
fs.copySync(icons, path.join(dist, '/@vant/icons'));
|
|
|
|
serve({}, { config });
|