gpt4 book ai didi

gruntjs - 当我测试 grunt-contrib-imagemin 时出现 fatal error : This socket is closed ,

转载 作者:行者123 更新时间:2023-12-02 10:07:00 24 4
gpt4 key购买 nike

我正在测试 jpg minify 插件 grunt-contrib-imagemin。但它总是失败运行“imagemin:dynamic”(imagemin) 任务 fatal error :此套接字已关闭。

Source :
grunt.initConfig({
imagemin: { // Task
dynamic: { // Another target
files: [{
expand: true, // Enable dynamic expansion
cwd: 'src/', // Src matches are relative to this path
src: ['**/*.{png,jpg,gif}'], // Actual patterns to match
dest: 'dist/' // Destination path prefix
}]
}
}
});

最佳答案

尝试重新安装 grunt-contrib-imagemin:

npm cache clean
npm install grunt-contrib-imagemin --save-dev

关于gruntjs - 当我测试 grunt-contrib-imagemin 时出现 fatal error : This socket is closed ,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26584879/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com