定制 soflomo/local-script 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

soflomo/local-script

Composer 安装命令:

composer require soflomo/local-script

包简介

Small Zend Framework 2 module to embed javascripts for specific installations

关键字:

README 文档

README

Soflomo\LocalScript is a small utility module which enables users to inject javascripts in their own developement build. Examples are the Grunt browser sync plugins. You would not commit those changes into the source repository and thus you need to exclude it every time you commit the layout files. Not anymore!

Installation

Require the package soflomo/local-script via composer. Then enable the module in your application configuration with the name "Soflomo\LocalScript".

Usage

Copy the file soflomo_localscript.local.php from vendor/soflomo/local-script/config to your own config/autoload directory. Load all files you need to load in the files array.

Example

An example configuration can look like:

return array(
    'soflomo_local_script' => array(
        /**
         * A listing of all the files to be injected
         *
         * Use the full source value to be injected, the array
         * can contain zero, one or multiple items.
         */
        'files' => array(
            'http://192.168.1.152:3000/socket.io/socket.io.js',
            'http://192.168.1.152:3001/browser-sync-client.min.js'
        ),
    ),
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-11-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固