Create folder. Open it in command line. Run npm install webpack -g. Create 2 files:
cats.js:
var cats = ['dave', 'henry', 'martha'];
module.exports = cats;
app.js
cats = require('./cats.js');
console.log(cats);
Run in command line: webpack ./app.js app.bundle.js
Now in folder will be fil...