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
Rendered html not minified. Only vue-cli portion is minified, ssr plugin html and css are send unminified. Can anyone help with this?
The text was updated successfully, but these errors were encountered:
Found a solution.
Within node_modules\@akryum\vue-cli-plugin-ssr
node_modules\@akryum\vue-cli-plugin-ssr
npm i html-minifier
Edit node_modules\@akyrum\vue-cli-plugin-ssr\lib\app.js
node_modules\@akyrum\vue-cli-plugin-ssr\lib\app.js
Include at the top
const minify = require('html-minifier').minify
I changed
res.status(context.httpCode).send(html)
to
res.status(context.httpCode).send(minify(html, { collapseWhitespace: true, minifyCSS: true, minifyJS: true, }))
Sorry, something went wrong.
No branches or pull requests
Rendered html not minified. Only vue-cli portion is minified, ssr plugin html and css are send unminified. Can anyone help with this?
The text was updated successfully, but these errors were encountered: