@io-arc/webpack-loaders-image
Image deploy for using file-loader.
Auto insert image path to HTML, CSS and JavaScript.
#
Usageindex.ts
#
VariablesImageMinPlugin
#
Return: webpack.Plugin
Using image-minimizer-webpack-plugin.
#
FunctionsImageLoader(base, target, isHash)
#
Return: webpack.RuleSetRule
Generate the file-loader information by specifying the output destination for each language, and the output destination for images.
Parameters
params | type | default | description |
---|---|---|---|
base | string[] | - | Language build output directory name array |
target | string[] | - | Image build output directory name array |
isHash | boolean | - | Image path adding hash in 6-digit |
example
webpack.config.ts