duhongwei / hotpack-compress

hotpack plugin compress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hotpack-compress

hotpack plugin compress

Contains three modules

Usage

npm install --save-dev @duhongwei/hotpack-compress
import compress from '@duhongwei/hotpack-compress'

export default {
  plugin: [
    {
      name: 'compress',
      use: compress,
      opt:{
        //Optional, default is {},options of uglify-js
        js:{},
        //Optional, default is { removeAttributeQuotes: true,collapseWhitespace: true }
        html:{  removeAttributeQuotes: true,collapseWhitespace: true},
        //Optional, default is {compatibility: 'ie9' },options of clean-css 
        css:{compatibility: 'ie9'},
      }
    }
  ]
}

About

hotpack plugin compress

License:MIT License


Languages

Language:JavaScript 100.0%