Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Delay optimizer imports #97

Closed
wants to merge 1 commit into from
Closed

Conversation

jednano
Copy link
Contributor

@jednano jednano commented May 5, 2017

Depending on configuration, this should get rid of some errors people are having. For example, #76 and #95. I was having the same problem, but I don't even have pngquant enabled!

These changes are backwards compatible, so no need for a major release.

{
    loader: 'image-webpack-loader',
    options: {
        pngquant: {
            enabled: false
        }
    }
}

@tcoopman
Copy link
Owner

Why does this fix the problem?

@jednano
Copy link
Contributor Author

jednano commented Aug 29, 2017

Because it now lazy loads the modules, so they only load if you use them. If you do enabled: false it never loads and therefore never throws the errors related to that module.

@tcoopman tcoopman closed this Mar 15, 2018
@jednano jednano deleted the delay-imports branch March 15, 2018 16:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants