craftcms / vue-asset
Vue.js asset bundle for Craft CMS
Installs: 39 979
Dependents: 0
Suggesters: 0
Security: 0
Stars: 23
Watchers: 3
Forks: 3
Language:JavaScript
Requires
- craftcms/cms: ~3.0.0-beta.1
This package is auto-updated.
Last update: 2022-02-01 13:05:35 UTC
README
⛔️ This package has been deprecated.
Craft plugins should register the craft\web\assets\vue\VueAsset asset bundle instead.
Vue.js Asset Bundle for Craft CMS
This package provides an asset bundle that registers Vue.js.
You can require it on a Craft project or plugin via Composer:
composer require craftcms/vue-asset
The asset bundle class is craft\vue\Asset
. It can be registered on a request like so:
PHP
use craft\vue\Asset as VueAsset; Craft::$app->view->registerAssetBundle(VueAsset::class);
Twig
{% do view.registerAssetBundle('craft\\vue\\Asset') %}
You can also make it a dependency of another asset bundle like so:
<?php namespace ns\prefix\assets; use craft\vue\Asset as VueAsset; use craft\web\AssetBundle; class MyAsset extends AssetBundle { public $depends = [ VueAsset::class, ]; // ... }