Add the plugin you want to your dependencies
in package.json
, e.g. if you need the aero-ajax plugin:
"dependencies": {
"aero": "*",
"aero-ajax": "*"
}
A plugin is just an npm package with the name prefix aero-
which defines a simple API. The following 3 methods can be used to define a plugin:
module.exports = app => console.log('My awesome plugin got loaded!')
exports.scripts = ['lib/jquery'] // lib/jquery.js
exports.styles = ['html-reset'] // html-reset.styl
Official plugins are hosted on the Aero organization page.
These plugins are a must-have for any modern site and they synergize well with Aero:
Including the ajax plugin will also change the behaviour of LiveReload to reload your pages via AJAX calls instead of a full browser reload.
You can also use:
- aero-git to instantly see changes on a
git push