Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Vue minify images

const ImageminPlugin = require('imagemin-webpack-plugin').default;

module.exports = {
  configureWebpack: {
    plugins: [
      new ImageminPlugin({
        disable: process.env.NODE_ENV !== 'production',
      })
    ]
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Vue #minify #images
ADD COMMENT
Topic
Name
2+1 =