An NPM package providing the latest assets for use with the Monkeyzbox Artist Wordpress theme, minified and ready for a production environment.
Monkeyzbox Artist Theme includes this package as a dependancy. The default Gulp
task inside the theme copies the production ready assets from this package into
an assets
directory used by that theme, e.g. themes/mzb-artist/assets
At the bottom of all the HTML in the Monkeyzbox Artist Theme the path to the scripts is defined and the index script is loaded (along with RequireJS).
The following lines are included in base.php
:
<script>
var MZB = {
PATH_TO_THEME: "/full/path/to/wp-content/themes/mzb-artist/"
}
</script>
<script data-main="<?= get_template_directory_uri(); ?>/assets/scripts/main.js" src="<?= get_template_directory_uri(); ?>/assets/scripts/require.js"></script>
All the CSS is provided via main.css
. This file is enqueued by Monkeyzbox
Artist theme, and or the child theme.
The assets are built by a development lab in a private repo: monkeyzbox-artist-theme-development