Skip to content

Commit 866fe0a

Browse files
Replace webpack with rollup as I've enjoyed working with it more. Add a little bundler node script
1 parent 0d663a9 commit 866fe0a

File tree

6 files changed

+119
-1123
lines changed

6 files changed

+119
-1123
lines changed

.babelrc

-9
This file was deleted.

bundler.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
const rollup = require('rollup');
2+
const uglify = require('rollup-plugin-uglify-es');
3+
4+
/**
5+
* Bundle the JavaScript components together and smoosh them with uglify
6+
*/
7+
async function bundleJavaScript() {
8+
const bundle = await rollup.rollup({
9+
input: `${__dirname}/src/beedle.js`,
10+
plugins: [
11+
uglify()
12+
]
13+
});
14+
15+
await bundle.write({
16+
format: 'umd',
17+
name: 'beedle',
18+
file: 'beedle.js',
19+
dir: `${__dirname}/dist/`,
20+
});
21+
};
22+
23+
bundleJavaScript();

dist/beedle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)