承接 pcuser42/cakephp-webpack-asset-loader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pcuser42/cakephp-webpack-asset-loader

最新稳定版本:v2.0.2

Composer 安装命令:

composer require pcuser42/cakephp-webpack-asset-loader

包简介

Webpack Asset handling plugin for CakePHP. It takes an exported entrypoints.json file and then automatically loads all assets for a specified entry point.

README 文档

README

Build Status codecov

WebpackAssetLoader plugin for CakePHP

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require pcuser42/cakephp-webpack-asset-loader

Use

Load the plugin in Application

$this->addPlugin('Pcuser42/WebpackAssetLoader');

Load the helper in AppView

$this->loadHelper('Pcuser42/WebpackAssetLoader.Asset');

Load all assets for an entrypoint in your template file:

<?=$this->Asset->loadEntry('app')?>

Or load assets and output them one type at a time in your view file:

$this->Asset->loadEntryDeferred('app');
...
<?=$this->Asset->getDeferredEntries('js')?>
...
<?=$this->Asset->getDeferredEntries('css')?>

统计信息

  • 总下载量: 755
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-23