Skip to content

Plugins

Osvaldo edited this page Feb 1, 2023 · 1 revision

Abrantes can not include all use cases in the core script, because it would be too large and defeat the whole purpose. Instead it uses plugins.

As an example you can see the plugin to track using Google Analytics 4 and gtag. You can write plugins using the same structure.

Use the gulp script to add the plugins in the gulpfile:

To concatenate the plugins to the core Abrantes.js file and render ÀbrantesPlus.js use:

gulp init

To minify ÀbrantesPlus.jsinto ÀbrantesPlus.min.js use:

gulp minify