diff options
author | Humberto Alfonso Díaz <humberto.alfonso@asvito.es> | 2019-06-20 08:55:22 +0200 |
---|---|---|
committer | Lorenzo Tilve <ltilve@igalia.com> | 2020-02-04 19:12:47 +0100 |
commit | 7e5498594faff35ce336cbfb84f8ebcf17013f30 (patch) | |
tree | 24f1143af8babd8df26cc5df1de3c95f36d03df8 | |
parent | 19ab74553bd4c0a47e899fc253d6021eeb7e1c96 (diff) |
FUCNT Add zip step
-rw-r--r-- | package.json | 3 | ||||
-rw-r--r-- | webpack.config.js | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/package.json b/package.json index 37bd01b..1c221bc 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "uglifyjs-webpack-plugin": "^2.1.1", "webpack": "^4.29.5", "webpack-cli": "^3.2.3", - "webpack-dev-server": "^3.7.2" + "webpack-dev-server": "^3.7.2", + "zip-webpack-plugin": "^3.0.0" }, "dependencies": { "@iconfu/svg-inject": "^1.2.3", 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: { |