-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
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
Resize from SCSS doesn't work #147
Comments
Same goes for |
Same for me for |
I also can neither resize background-image in background-image: url('../public/images/hero-bg.png?webp');
background-image: url('../public/images/hero-bg.png?resize&size=500'); results in the full jpeg image (i.e. localhost:3000/_next/static/images/hero-bg-3ffba3cef92d0972f13f317d74e1bcab.png). const withPlugins = require('next-compose-plugins');
const optimizedImages = require('next-optimized-images');
const responsiveLoaderSharp = require('responsive-loader/sharp');
module.exports = withPlugins([
[optimizedImages, {
responsive: {
adapter: responsiveLoaderSharp,
sizes: [300, 320, 640, 960, 1200, 1800, 2400],
placeholder: true,
placeholderSize: 40,
},
optimizeImagesInDev: true,
}],
]); |
I couldn't find anywhere a mention to this not working so I assumed this should work but please correct me if I'm wrong. Also THANK YOU for this library - it's awesome.
Resizing via url params works when I use it with
require
.It doesn't seem to work from scss files though.
Image size remains 2048 when opening it
I'm on:
The text was updated successfully, but these errors were encountered: