ui: init windows 98 theme

This commit is contained in:
undefined committed 2021-04-05 17:35:36 +08:00
1 parent 6cae5cb7d1
commit 9524e56d01
12 files changed
+731 -58

No files matched your search

+17 -1
View File
@@ -1,6 +1,7 @@
/* eslint-disable import/no-extraneous-dependencies */
import { argv } from 'yargs';
import webpack from 'webpack';
import WebpackDevServer from 'webpack-dev-server';
import gulp from 'gulp';
import log from 'fancy-log';
import chalk from 'chalk';
@@ -8,8 +9,23 @@ import root from './utils/root';
import gulpConfig from './config/gulp';
import webpackConfig from './config/webpack';
function runWebpack({ watch, production, measure }) {
function runWebpack({
watch, production, measure, dev,
}) {
const compiler = webpack(webpackConfig({ watch, production, measure }));
if (dev) {
const server = new WebpackDevServer(compiler, {
compress: true,
hot: true,
stats: 'errors-warnings',
index: '',
proxy: {
context: () => true,
target: 'http://localhost:2333',
},
});
return server.listen(8000);
}
return new Promise((resolve, reject) => {
function compilerCallback(err, stats) {
if (err) {