We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问vue-cli3.0构建的项目注入的html和css如何压缩?
The text was updated successfully, but these errors were encountered:
html-webpack-plugin 使用 html-minifier 对 HTML 进行压缩,所以可以通过 html-webpack-plugin 插件的 minify 配置对象进行配置:
html-webpack-plugin
minify
new HtmlWebpackPlugin({ minify: { removeComments: true, collapseWhitespace: true, removeAttributeQuotes: true, minifyCSS: true // 压缩内联的 CSS } }),
Sorry, something went wrong.
@xiaoiver
vue cli 3.0 的项目里面,这段代码具体配置在什么位置,我配置后,发现 html 压缩了,但是 css 没有压缩,麻烦指点一下。
xiaoiver
No branches or pull requests
请问vue-cli3.0构建的项目注入的html和css如何压缩?
The text was updated successfully, but these errors were encountered: