monkeyzbox-artist-theme-assets
v1.1.0
Published
Distribution assets for Monkeyzbox Artist Wordpress theme
Downloads
25
Readme
Monkeyzbox Artist - theme assets
An NPM package providing the latest assets for use with the Monkeyzbox Artist Wordpress theme, minified and ready for a production environment.
How it works
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
How the assets are included
Scripts
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>
Styles
All the CSS is provided via main.css
. This file is enqueued by Monkeyzbox
Artist theme, and or the child theme.
Source files
The assets are built by a development lab in a private repo: monkeyzbox-artist-theme-development