1.2.7 • Published 4 years ago

towebp-webpack-plugin v1.2.7

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

1.2.5开始支持webpack4

plugins: [new ToWebPWebpackPlugin({
    match: /(jpe?g|png)$/,
    // srcContain: ".webp.",
    limit: 10240,
    webp: {
      quality: 100
    }
  })]

centos下webp环境依赖。 如出错请检测,出错内容。 安装软件顺序如下。(必须按照顺序)

1、libpng tar libpng-1.6.32.tar.gz make uninstall  ./configure  make  sudo make install

2、jpegsrc tar xvf jpegsrc.v9b.tar.gz
make uninstall  ./configure  make  sudo make install

3、libwebp tar xvf libwebp-0.6.0-rc2.tar.gz make uninstall  ./configure  make  sudo make install

//注意:安装中,如果遇到没有文件夹的错误,请新建后,再执行 sudo mkdir xxxx

//安装完,设置环境变量 $ vi ~/.bash_profile export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/usr/local/lib"

//修改生效 source . bash_profile

1.3.0-beta.0

4 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago