-
-
Notifications
You must be signed in to change notification settings - Fork 200
Disable ImagesLoader and use another one #206
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
Comments
Hi @kubapyla, The issue you're having comes from the fact that when you write something like This is the default behavior of the css-loader and can't be disabled easily in Encore (ie. without messing with the generated config) since we only pass the following options to it: webpack-encore/lib/loaders/css.js Lines 23 to 36 in bcfbbfd
Because you also called You should probably keep the images loader (the Note that if the images loader is enabled you can also do something like |
Closing this issue, feel free to reopen it if you need more explanation @kubapyla. |
Hi @Lyrkan, thank you for you answer. I kind have an issue with this: webpack copy & rename with hashs the images that are in my .scss files. I have: .element {
background: transparent url("../svg/icon-check_verified-gradient.svg") 0 50% no-repeat;
} And then when I compile my SCSS file, I have a And it takes a lot of time to generate the hash, copy the files, rename them, etc. Like 2.5 seconds on a compilation when webpack is watching everything it's way too long:
What can I do about it? Thank you! |
Hi @DaPo, I think that's probably related to #253. By default the You could try disabling as explained in the other issue to check if that's the case. |
Hi everyone, I've got a question about using different images loader than default. I want to copy images from ./src/assets/images/ to ./web/assets/images/, I know that default loader does that with every file included in .scss files, but not all of my image files are included in .scss files however I still want to copy them.
I have disabled it using disableImagesLoader() and tried using webpack-image-loader/copy-webpack-plugin with addLoader()/addPlugin(), but I've got this type of errors:
Here's my webpack.config.js
I am aware about #24 but I haven't found an answer for that there.
The text was updated successfully, but these errors were encountered: