Skip to content

Commit

Permalink
Replace webpack with rollup as I've enjoyed working with it more. Add…
Browse files Browse the repository at this point in the history
… a little bundler node script
  • Loading branch information
Andy-set-studio committed Aug 5, 2018
1 parent 0d663a9 commit 866fe0a
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 1,123 deletions.
9 changes: 0 additions & 9 deletions .babelrc

This file was deleted.

23 changes: 23 additions & 0 deletions bundler.js
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();
2 changes: 1 addition & 1 deletion dist/beedle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 866fe0a

Please sign in to comment.