Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
veimagex-webpack-loader
Advanced tools
一款 webpack 插件,可以将本地图片资源替换成 imagex 的图片,以优化图片和加快加载速度,使用前请先在火山引擎开通ImageX图片服务
// use npm
npm install veimagex-webpack-loader --save-dev
// use yarn
yarn add veimagex-webpack-loader --dev
使用方法同 file-loader
,支持 file-loader 的所有参数,主要用于上传失败后的文件处理,新增了用于图片上传和访问的参数
{
loader: 'veimagex-webpack-loader',
test: /\.(png|jpe?g|gif|svg)$/i,
options: {
outputPath: 'static/media',
name: '[name].[hash:8].[ext]',
serviceId: '<服务ID>',
template: '<模板名称>',
domain: '<域名>',
params: '<参数数组>', // 如果模板中有url参数则需要指定
accessKey: '<accessKey>',
secretKey: '<secretKey>',
region: 'boe' | 'cn' | 'sg' | 'us' | 'boei18n', // 上传区域
},
}
不要对同一个图片文件同时使用 file-loader 和 veimagex-webpack-loader
FAQs
imagex webpack loader
The npm package veimagex-webpack-loader receives a total of 4 weekly downloads. As such, veimagex-webpack-loader popularity was classified as not popular.
We found that veimagex-webpack-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.