2017 © Pedro Peláez
 

package wordpress-asset-bundles

Bundle all kinds of assets and enqueue them at once

image

biont/wordpress-asset-bundles

Bundle all kinds of assets and enqueue them at once

  • Wednesday, January 31, 2018
  • by Biont
  • Repository
  • 1 Watchers
  • 0 Stars
  • 373 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 40 % Grown

The README.md

WordPress Asset Bundles

This is a small library that allows developers to create bundles of various asset types. Scripts, styles and other, custom asset types can be registered as a package. All assets are enqueued together when the AssetBundle is enqueued., (*1)

Installation

Fetch this package via composer: composer require biont/wordpress-asset-bundles, (*2)

Usage


$bundle => new AssetBundle( 'my_bundle', [ new Script( // Script handle 'my_asset_js', // Script path $asset_dir . 'js/asset.js', // Dependencies [ 'jquery' ] ), new Style( 'my_asset_css', $asset_dir . 'css/asset.css' ), ] ); $bundle->register(); // Call $bundle->enqueue() whenever you need your assets

The Versions

31/01 2018

dev-master

9999999-dev

Bundle all kinds of assets and enqueue them at once

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

wordpress assets