调整板初始化代码,新增自定义编号
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user