Commit 4abed6c5 authored by rockyl's avatar rockyl

独立bin

parent f9947f68
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
const execa = require('execa'); const execa = require('execa');
const isPng = require('is-png'); const isPng = require('is-png');
const isStream = require('is-stream'); const isStream = require('is-stream');
const pngquant = require('pngquant-bin'); //const pngquant = require('pngquant-bin');
const ow = require('ow'); const ow = require('ow');
const pngquant = 'vendor/pngquant';
const imageminPngquant = (options = {}) => input => { const imageminPngquant = (options = {}) => input => {
const isBuffer = Buffer.isBuffer(input); const isBuffer = Buffer.isBuffer(input);
......
...@@ -27,8 +27,7 @@ ...@@ -27,8 +27,7 @@
"execa": "^1.0.0", "execa": "^1.0.0",
"is-png": "^2.0.0", "is-png": "^2.0.0",
"is-stream": "^2.0.0", "is-stream": "^2.0.0",
"ow": "^0.13.2", "ow": "^0.13.2"
"pngquant-bin": "git+ssh://git@gitlab2.dui88.com:laoqifeng/pngquant-bin.git"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^12.0.3", "@types/node": "^12.0.3",
......
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment