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
I have a set of fonts to which I need to point using url mixin in scss files. Also I need all fonts to be gzipped and fingerprinted.
url
What I have so far is:
const withCss = require('@zeit/next-css'); const withSass = require('@zeit/next-sass'); const commonsChunkConfig = require('@zeit/next-css/commons-chunk-config'); const CompressionPlugin = require('compression-webpack-plugin') const withOptimizedImages = require('next-optimized-images'); module.exports = withOptimizedImages(withSass(withCss({ webpack(config) { config = commonsChunkConfig(config, /\.(sass|scss|css)$/); config.plugins.slice(-1)[0].filename = 'static/style-[contenthash].css'; config.plugins.push(new CompressionPlugin({ test: /\.(css|js|svg|ttf|eot)$/, minRatio: 100000 })); return config; } })))
.class { background: url( ???? ) }
The text was updated successfully, but these errors were encountered:
you can add a custom server
not sure what you're asking
This shouldn't be posted here as per the issue template questions should be posted on https://spectrum.chat/next-js
Sorry, something went wrong.
No branches or pull requests
I have a set of fonts to which I need to point using
url
mixin in scss files.Also I need all fonts to be gzipped and fingerprinted.
What I have so far is:
Problem:
1 - How to fingerprint and GZIP compress fonts?
2 - How should fonts and images be addressed in SCSS files (while url points to the correct fingerprint)
The text was updated successfully, but these errors were encountered: