mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-22 11:54:19 +01:00
webpack: minify html for production
This commit is contained in:
@@ -19,6 +19,10 @@ module.exports = merge(config, {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
|
minify: {
|
||||||
|
removeComments: true,
|
||||||
|
collapseWhitespace: true,
|
||||||
|
},
|
||||||
inlineSource: '.(js|css)$',
|
inlineSource: '.(js|css)$',
|
||||||
template: 'index.html',
|
template: 'index.html',
|
||||||
}),
|
}),
|
||||||
|
|||||||
46
src/index.html
vendored
46
src/index.html
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user