Skip to content

Commit 8304b2c

Browse files
committed
add html-loader
1 parent fa8db20 commit 8304b2c

File tree

4 files changed

+31
-6
lines changed

4 files changed

+31
-6
lines changed

conf/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const config = {
7575
// },
7676
{
7777
test: /\.html$/,
78-
type: 'asset/source'
78+
use: 'html-loader'
7979
// options: {
8080
// // minimize: false,
8181
// // removeComments: false,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@types/node": "^22.6.1",
5252
"copy-webpack-plugin": "^12.0.2",
5353
"css-loader": "^7.1.2",
54+
"html-loader": "^5.1.0",
5455
"html-webpack-plugin": "^5.6.0",
5556
"less": "^4.2.0",
5657
"less-loader": "^12.2.0",

pnpm-lock.yaml

Lines changed: 28 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/template/index_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<title>CMS-管理后台</title>
88
<base href="/">
9-
<link rel="manifest" href="/manifest.json">
9+
<!-- <link rel="manifest" href="/manifest.json"> -->
1010
</head>
1111
<body>
1212
<app-root>

0 commit comments

Comments
 (0)