diff options
author | Humberto Alfonso Díaz <humberto.alfonso@asvito.es> | 2019-06-20 08:55:22 +0200 |
---|---|---|
committer | Humberto Alfonso Díaz <humberto.alfonso@asvito.es> | 2019-06-20 08:55:22 +0200 |
commit | a164d8d49f9c52c7f0caa0dfa9e33e3c0660c464 (patch) | |
tree | 24f1143af8babd8df26cc5df1de3c95f36d03df8 /webpack.config.js | |
parent | 22f249aa3bb0cd5bd249c7e366f76b7532460244 (diff) |
FUCNT Add zip step
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 8 |
1 files changed, 8 insertions, 0 deletions
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: { |