Images Build Constants
Constants related to images when using file-loader (webpack).
WS_IMG_PATH_ABSOLUTE
#
Config Key: wsDir.img
Return: string
The absolute path to the WS_ROOT
+ wsDir.img
.
Same as pwd
command.
OUTPUT_IMG_ARRAY
#
Config key: deployDir.js
Return: string[]
Default: ['common', 'img']
Array of output directory names.
DEPLOY_IMG_ARRAY
#
Config key: -
Return: string[]
An array of directory names obtained by adding DIST
+ OUTPUT_IMG_ARRAY
.
WEBP_CONVERTER_CONFIG
#
Config key: options.webp
Return: IfWebpConverterConfig[]
(*)
Default: []
PNG, JPG, GIF files to Webp files convert.
* Return Types
imageminWebp.Options
is the see imagemin-webp options
USE_IMAGEMIN
#
Config key: options.imagemin
Return: [string, object][] | undefined
Default: undefined
Using imagemin plugins.