mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
19 lines
625 B
JavaScript
19 lines
625 B
JavaScript
var path = require('path');
|
|
|
|
module.exports = {
|
|
entry: path.resolve(path.join(__dirname, '.', 'index.js')),
|
|
output: {
|
|
path: path.resolve(path.join(__dirname, '.', 'dist')),
|
|
library: 'Clipboard',
|
|
libraryTarget: 'umd',
|
|
filename: 'clipboard.js'
|
|
},
|
|
module: {
|
|
loaders: [{test: /\.js?$/, exclude: /(node_modules|bower_components)/, loader: 'babel?optional[]=runtime&stage=0'}]
|
|
},
|
|
externals: [
|
|
// delegate-events and tiny-emitter could go here if you want them externally provided
|
|
// {library: {root: 'LibraryWindowSymbol', amd: 'library', commonjs: 'library', commonjs2: 'library'}},
|
|
]
|
|
};
|