mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
feat(cli): build package
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import webpack from 'webpack';
|
||||
import WebpackDevServer from 'webpack-dev-server';
|
||||
import webpackDevConfig from '../config/webpack.site.dev';
|
||||
import { getPort } from 'portfinder';
|
||||
import { clean } from '../commands/clean';
|
||||
import { siteDevConfig } from '../config/webpack.site.dev';
|
||||
import { genMobileConfig } from '../compiler/gen-mobile-config';
|
||||
import { genDesktopConfig } from '../compiler/gen-desktop-config';
|
||||
|
||||
function runWebpack() {
|
||||
const server = new WebpackDevServer(
|
||||
webpack(webpackDevConfig),
|
||||
(webpackDevConfig as any).devServer
|
||||
webpack(siteDevConfig),
|
||||
(siteDevConfig as any).devServer
|
||||
);
|
||||
|
||||
getPort(
|
||||
|
Reference in New Issue
Block a user