vue.config.js 291 B

123456789101112131415
  1. module.exports = {
  2. transpileDependencies: ['@dcloudio/uni-ui'],
  3. configureWebpack: {
  4. plugins: [
  5. new CompressionWebpackPlugin({
  6. filename: "[path][base].gz",
  7. algorithm: "gzip",
  8. test: /\.js$/,
  9. threshold: 5000,
  10. minRatio: 0.8,
  11. exclude: /node_modules/,
  12. })
  13. ]
  14. }
  15. }