Update webpack config for copy-webpack-plugin v8

This commit is contained in:
Labhansh Agrawal 2021-03-06 22:34:39 +05:30
parent 5ac8127da6
commit 84498677ca

View file

@ -34,12 +34,12 @@ const config: webpack.Configuration[] = [
{ {
from: './app/*.html', from: './app/*.html',
globOptions: {ignore: ['**/node_modules/**']}, globOptions: {ignore: ['**/node_modules/**']},
to: '[name].[ext]' to: '[name][ext]'
}, },
{ {
from: './app/*.json', from: './app/*.json',
globOptions: {ignore: ['**/node_modules/**']}, globOptions: {ignore: ['**/node_modules/**']},
to: '[name].[ext]' to: '[name][ext]'
}, },
{ {
from: './app/yarn.lock', from: './app/yarn.lock',
@ -48,7 +48,7 @@ const config: webpack.Configuration[] = [
{ {
from: './app/keymaps/*.json', from: './app/keymaps/*.json',
globOptions: {ignore: ['**/node_modules/**']}, globOptions: {ignore: ['**/node_modules/**']},
to: './keymaps/[name].[ext]' to: './keymaps/[name][ext]'
}, },
{ {
from: './app/static', from: './app/static',