Skip to content

Commit

Permalink
fix: enable compression for vuetify library
Browse files Browse the repository at this point in the history
  • Loading branch information
sniperadmin committed May 5, 2020
1 parent a0e34aa commit 1be38dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Compress static text assets at build time
const CompressionPlugin = require('compression-webpack-plugin')
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')

module.exports = {
configureWebpack: {
Expand Down Expand Up @@ -57,6 +58,8 @@ module.exports = {

// enable build time compression
config.plugin('CompressionPlugin').use(CompressionPlugin)
// VuetifyLoaderPlugin
config.plugin('VuetifyLoaderPlugin').use(VuetifyLoaderPlugin)
},

productionSourceMap: false
Expand Down

0 comments on commit 1be38dd

Please sign in to comment.