1.1.18 • Published 7 months ago
@pieced/image-config-webpack-plugin v1.1.18
Automatically configuration webpack5 image loader
Install
npm i --save-dev @pieced/image-config-webpack-pluginWebpack Config
const ImageConfigWebpackPlugin = require('@pieced/image-config-webpack-plugin');
module.exports = {
plugins: [new ImageConfigWebpackPlugin()],
};Options
suffix
type arraydefault ['png', 'jpg', 'jpeg', 'gif', 'svg', 'webp', 'avif']
parser
type object- webpack.rule.parser
- default
const defaultParser = {
dataUrlCondition: {
maxSize: webpack.mode === 'development' ? undefined : 1000,
},
}generator
type object- webpack.rule.generator
- default
const defaultGenerator = {
filename: webpack.mode === 'development' ? '[path][name][ext]' : 'static/images/[contenthash:10][ext]',
}1.1.1
9 months ago
1.1.0
9 months ago
1.1.9
9 months ago
1.1.8
9 months ago
1.1.7
9 months ago
1.1.6
9 months ago
1.1.5
9 months ago
1.1.4
9 months ago
1.1.3
9 months ago
1.1.2
9 months ago
1.1.15-beta.0
9 months ago
1.1.12
9 months ago
1.1.11
9 months ago
1.1.10
9 months ago
1.1.16
8 months ago
1.1.15
9 months ago
1.1.14
9 months ago
1.1.13
9 months ago
1.1.18
7 months ago
1.1.17
8 months ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago