Skip to content

Commit

Permalink
feat: 使用阿里云的源 进行图片压缩处理
Browse files Browse the repository at this point in the history
  • Loading branch information
ximing committed Aug 7, 2019
1 parent 3dff767 commit d3ffc92
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 112 deletions.
221 changes: 114 additions & 107 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mpbuild",
"version": "1.2.12",
"version": "1.2.14",
"description": "",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -62,8 +62,8 @@
"htmlparser2": "^3.10.1",
"del": "^4.1.1",
"imagemin": "^6.1.0",
"imagemin-jpegtran": "^6.0.0",
"imagemin-pngquant": "^8.0.0",
"@yeanzhi/imagemin-jpegtran": "^6.0.0",
"@yeanzhi/imagemin-pngquant": "^8.0.0",
"jsonlint": "^1.6.3",
"jsonminify": "^0.4.1",
"lodash": "^4.17.11",
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/copyImagePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
*/
const path = require('path');
const imagemin = require('imagemin');
const imageminJpegtran = require('imagemin-jpegtran');
const imageminPngquant = require('imagemin-pngquant');
const imageminJpegtran = require('@yeanzhi/imagemin-jpegtran');
const imageminPngquant = require('@yeanzhi/imagemin-pngquant');

module.exports = class CopyImagePlugin {
constructor(options) {
Expand Down

0 comments on commit d3ffc92

Please sign in to comment.