调整板初始化代码,新增自定义编号

This commit is contained in:
xief
2023-07-13 11:57:28 +08:00
parent eb736bce84
commit e70354267b
7 changed files with 1273 additions and 2326 deletions

View File

@@ -1,7 +1,7 @@
import HtmlWebPackPlugin from "html-webpack-plugin";
import * as webpack from 'webpack';
import merge from 'webpack-merge';
import common from './webpack.common';
import HtmlWebPackPlugin from "html-webpack-plugin";
const config: webpack.Configuration = merge(
common,
@@ -11,12 +11,14 @@ const config: webpack.Configuration = merge(
output: { pathinfo: false },
devtool: "eval-source-map",
devServer: {
contentBase: "./dist/",
// contentBase: "./dist/",
static: false,
port: 7776,
host: "0.0.0.0",
hot: true,
},
plugins: [
new webpack.NamedModulesPlugin(),//Hot
// new webpack.NamedModulesPlugin(),//Hot
new webpack.HotModuleReplacementPlugin(),//Hot
new HtmlWebPackPlugin({
title: "webCAD",