vant-weapp/build/dev.js

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 });