panugaling/require-js 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

panugaling/require-js

Composer 安装命令:

composer require panugaling/require-js

包简介

README 文档

README

Laravel package to automatically create files for RequireJS. This is for my personal use but if there is anyone who wants to use this package, feel free to fork it.

Installation

Install the package using composer. Edit your composer.json file and require this.

"panugaling/require-js": "dev-master"

Next is to update composer from the terminal.

composer update

Let's now add the Service Provider by opening your app/config/app.php and add a new item in the providers array.

'Panugaling\RequireJS\RequireJSServiceProvider',

If you want to change the configuration of the package, type this command in the terminal.

php artisan config:publish panugaling/require-js

That's it! You are now ready to use the package.

Usage

In your blade template, you can use it like this.

<body>
	{{ Required::load('main') }}
</body>

The argument main is the filename of our main js file. you can change it what ever you like.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-19