node package manager

rucksack

JavaScript and CSS bundler.

rucksack

Patreon PayPal AMA Version Downloads Get help on Codementor

JavaScript and CSS bundler.

☁️ Installation

$ npm i --save rucksack

📋 Example

const Rucksack = require("rucksack");
 
 
let bundler = new Rucksack();
 
// Add remote url as resource 
//bundler.add("https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"); 
//bundler.add(`${__dirname}/data/main.js`); 
//bundler.add(`${__dirname}/data/another-main.js`); 
bundler.add(`${__dirname}/data/bar.css`);
bundler.add(`${__dirname}/data/main.css`);
bundler.addCSS("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/default.min.css", false);
bundler.bundleCSS();
bundler.bundleJS();

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💰 Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❤️

💫 Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

📜 License

MIT © Ionică Bizău