-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace webpack with rollup as I've enjoyed working with it more. Add…
… a little bundler node script
- Loading branch information
1 parent
0d663a9
commit 866fe0a
Showing
6 changed files
with
119 additions
and
1,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const rollup = require('rollup'); | ||
const uglify = require('rollup-plugin-uglify-es'); | ||
|
||
/** | ||
* Bundle the JavaScript components together and smoosh them with uglify | ||
*/ | ||
async function bundleJavaScript() { | ||
const bundle = await rollup.rollup({ | ||
input: `${__dirname}/src/beedle.js`, | ||
plugins: [ | ||
uglify() | ||
] | ||
}); | ||
|
||
await bundle.write({ | ||
format: 'umd', | ||
name: 'beedle', | ||
file: 'beedle.js', | ||
dir: `${__dirname}/dist/`, | ||
}); | ||
}; | ||
|
||
bundleJavaScript(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.