weboftalent/clearrequirements 问题修复 & 功能扩展

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

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

weboftalent/clearrequirements

Composer 安装命令:

composer require weboftalent/clearrequirements

包简介

Remove all requirements with a single template call and start template afresh

README 文档

README

Maintainers

Introduction

This module allows clearing of CSS and JS files from a template using a YML config file. Use this if you wish to manually combine and compress JS and CSS files.

Documentation

YML File

The YML config file, which can be named arbitrarily, simply consists of a list of JS and CSS files that are to be cleared. Note that a unique ID can also be provided, this is the only way to clear custom scripts.

---
Name: jakayanrides-clear-requirements
After: clear-requirements-extensions
---
WebOfTalent\ClearRequirements\RequirementsClearer:
  JavaScript:
    - framework/thirdparty/jquery/jquery.js
    - framework/thirdparty/jquery-validate/lib/jquery.form.js
    - framework/thirdparty/jquery-validate/jquery.validate.pack.js
    - comments/javascript/CommentsInterface.js
    - mappable/javascript/google/FullScreenControl.js
    - mappable/javascript/google/markerclusterer.js
    - mappable/javascript/google/maputil.js
  CSS:
    - foundationforms/css/foundationforms.css

Executing Requirements Clearning

Prior to including your JavaScript call this in your template:

$ClearCustomRequirements

Clear All Requirements

This does not use the above configuration file and simply removes all requirements. Note this includes custom scripts as well.

If this functionality is desired add this to your template prior to including JavaScript.

$ClearAllRequirements

Requirements

  • SilverStripe 3,4

Install

SS4

composer require 'weboftalent/clearrequirements'

SS3

composer require 'weboftalent/clearrequirements:^1'

TODO

  • Tests

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-01-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固