From b3198b2a0407de071b14290af2415169b9198b9f Mon Sep 17 00:00:00 2001 From: Humberto Alfonso Díaz Date: Thu, 20 Jun 2019 08:55:22 +0200 Subject: FUCNT Add zip step --- webpack.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index ec29d07..157b8be 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,6 +4,8 @@ const CleanWebpackPlugin = require('clean-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCSSExtractPlugin = require('mini-css-extract-plugin'); const CopyPlugin = require('copy-webpack-plugin'); +const ZipPlugin = require('zip-webpack-plugin'); + module.exports = { mode: 'production', @@ -40,6 +42,12 @@ module.exports = { new MiniCSSExtractPlugin({ filename: 'app.css', path: __dirname + '/dist' + }), + new ZipPlugin({ + path: __dirname + '/dist', + filename: 'homescreen', + extension: 'wgt', + exclude: [] }) ], module: { -- cgit 1.2.3-korg