feat adding es5 as target for webpack compilation
This commit is contained in:
parent
c38b4ee76f
commit
6f10cf7e12
|
@ -13,6 +13,7 @@ Licensed MIT © Zeno Rocha`;
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: './src/clipboard.js',
|
entry: './src/clipboard.js',
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
target: ['web', 'es5'],
|
||||||
output: {
|
output: {
|
||||||
filename: production ? 'clipboard.min.js' : 'clipboard.js',
|
filename: production ? 'clipboard.min.js' : 'clipboard.js',
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
|
|
Loading…
Reference in New Issue