/vue-asset

⛔️ DEPRECATED | Vue.js asset bundle for Craft 3 Beta

Primary LanguageJavaScriptMIT LicenseMIT

⛔️ 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,
    ];
    
    // ...
}