From d3459f7c704fae4fed6e0cf0157a3b6d565174d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Farkas=20J=C3=B3zsef?= Date: Sat, 18 Feb 2017 13:23:10 +0100 Subject: [PATCH] Minor changes at CopyWebpackPlugin options --- electron/src/webpack.config.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/electron/src/webpack.config.js b/electron/src/webpack.config.js index cc4300ee..e4432cc1 100644 --- a/electron/src/webpack.config.js +++ b/electron/src/webpack.config.js @@ -56,8 +56,9 @@ module.exports = { webpackFailPlugin, new CopyWebpackPlugin( [ - { from: './electron/src/**/*.html', flatten: true }, - { from: './electron/src/**/*.js', flatten: true }, + { + from: path.join(__dirname, 'index.html'), flatten: true + }, { from: 'node_modules/font-awesome/css/font-awesome.min.css', to: 'vendor/font-awesome/css/font-awesome.min.css' @@ -78,10 +79,7 @@ module.exports = { from: 'node_modules/usb', to: 'vendor/usb' } - ], - { - ignore: ['*.config.js'] - } + ] ), new webpack.ProvidePlugin({ $: "jquery",