Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e17c3e

Browse files
committed
refactor: html-webpack-plugin添加minify属性
1 parentd5b76b3 commit6e17c3e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎template/build/webpack.prod.conf.js‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@ const webpackConfig = merge(baseWebpackConfig, {
5151
minify:{
5252
removeComments:true,
5353
collapseWhitespace:true,
54-
removeAttributeQuotes:true
54+
removeAttributeQuotes:true,
55+
useShortDoctype:true,
56+
removeEmptyAttributes:true,
57+
removeStyleLinkTypeAttributes:true,
58+
keepClosingSlash:true,
59+
minifyJS:true,
60+
minifyCSS:true,
61+
minifyURLs:true
5562
// more options:
5663
// https://github.com/kangax/html-minifier#options-quick-reference
5764
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp