themeplate/vite
最新稳定版本:v2.3.0
Composer 安装命令:
composer require themeplate/vite
包简介
Straight-forward Vite integration for WordPress
README 文档
README
Usage
composer require themeplate/vite
functions.php
use ThemePlate\Vite\Project; $vite = new Project( get_stylesheet_directory(), get_stylesheet_directory_uri() ); // $vite->config->prefix( 'custom-' ); add_action( 'wp_enqueue_scripts', function() use ( $vite ) { $vite->style( 'main-style' ); $vite->script( 'main-script' ); $vite->action(); } ); add_action( 'enqueue_block_editor_assets', function() use ( $vite ) { $vite->style( 'editor-style' ); $vite->script( 'editor-script' ); $vite->action(); } );
统计信息
- 总下载量: 156
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2023-01-28