Skip to content

Instantly share code, notes, and snippets.

@zenorocha
Last active April 8, 2018 02:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zenorocha/53daffe28de983907579 to your computer and use it in GitHub Desktop.
Save zenorocha/53daffe28de983907579 to your computer and use it in GitHub Desktop.
Bundling Clipboard.js' distribution with Webpack
var Clipboard = require('clipboard');
{
"private": true,
"dependencies": {
"clipboard": "^1.5.1"
},
"devDependencies": {
"webpack": "^1.12.1"
},
"scripts": {
"build": "webpack"
}
}
module.exports = {
entry: "./entry.js",
output: {
path: __dirname,
filename: "bundle.js"
},
resolve: {
alias: {
clipboard: 'clipboard/dist/clipboard'
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment