This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable option for [email protected]
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,8 @@ rules: [{ | |
{ | ||
loader: 'image-webpack-loader', | ||
options: { | ||
bypassOnDebug: true, | ||
bypassOnDebug: true, // [email protected] | ||
disable: true, // [email protected] and newer | ||
}, | ||
}, | ||
], | ||
|
@@ -110,6 +111,13 @@ Default: `false` | |
|
||
Using this, no processing is done when webpack 'debug' mode is used and the loader acts as a regular file-loader. Use this to speed up initial and, to a lesser extent, subsequent compilations while developing or using webpack-dev-server. Normal builds are processed normally, outputting optimized files. | ||
|
||
#### disable | ||
|
||
Type: `boolean` | ||
Default `false` | ||
|
||
Same functionality as **bypassOnDebug** option, but doesn't depend on webpack debug mode, which was deprecated in 2.x. Basically you want to use this option if you're running [email protected] or newer. | ||
|
||
For optimizer options, an up-to-date and exhaustive list is available on each optimizer repository: | ||
|
||
- [mozjpeg](https://github.com/imagemin/imagemin-mozjpeg#options) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters