You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

const config = {
//基础公共配置
base: {
// 指定要查找的目录
directoryPath: '/Users/minya/Desktop/商品资料',
/**
* 图片文件夹路径
* 1. 配置文件中inputDir为空
* 则根据directoryPath目录获取该文件夹下最新创建的文件夹作为工作目录
*
* 2. 配置文件中inputDir不为空
* 则直接使用inputDir作为工作目录
*/
inputDir: '',
},
// 裁剪商品封面图
cover: {
// 支持处理的常见图片格式
format: new Set(['jpg', 'jpeg', 'png', 'gif', 'webp', 'tiff', 'svg']),
// 封面图裁剪比例
scaleArr: [
{
name: '主图11',
scale: [1, 1],
dir: '',
},
{
name: '主图34',
scale: [3, 4],
dir: '',
},
],
},
ppt: {
// 支持处理的常见图片格式
format: new Set(['ppt', 'pptx']),
},
};
module.exports = config;