UNPKG

share-api-polyfill-cloudeight

Version:

This is a polyfill for the `Web Share API` that can be used in desktop too, so your users can share in their twitter, facebook, messenger, linkedin, sms, e-mail, print, telegram or whatsapp.

24 lines (21 loc) 468 B
const webpack = require('webpack'); const path = require('path'); module.exports = (env, argv) => { const config = { entry: './src/share.js', output: { path: path.resolve(__dirname, 'dist'), filename: (argv.mode === 'production') ? 'share-min.js' : 'share.js' }, module: { rules: [ { test: /\.js$/, use: 'babel-loader', exclude: /node_modules/ } ] } }; return config; }