Minor changes at CopyWebpackPlugin options

This commit is contained in:
Farkas József
2017-02-18 13:23:10 +01:00
parent e9911fa842
commit d3459f7c70

View File

@@ -56,8 +56,9 @@ module.exports = {
webpackFailPlugin, webpackFailPlugin,
new CopyWebpackPlugin( 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', from: 'node_modules/font-awesome/css/font-awesome.min.css',
to: 'vendor/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', from: 'node_modules/usb',
to: 'vendor/usb' to: 'vendor/usb'
} }
], ]
{
ignore: ['*.config.js']
}
), ),
new webpack.ProvidePlugin({ new webpack.ProvidePlugin({
$: "jquery", $: "jquery",