feat adding es5 as target for webpack compilation

This commit is contained in:
vitormalencar 2021-03-09 11:38:00 +01:00
parent c38b4ee76f
commit 6f10cf7e12
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ Licensed MIT © Zeno Rocha`;
module.exports = {
entry: './src/clipboard.js',
mode: 'production',
target: ['web', 'es5'],
output: {
filename: production ? 'clipboard.min.js' : 'clipboard.js',
path: path.resolve(__dirname, 'dist'),