定制 mediagone/dotless-bundle 二次开发

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

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

mediagone/dotless-bundle

Composer 安装命令:

composer require mediagone/dotless-bundle

包简介

A configurable LESS compiler for Symfony projects.

README 文档

README

A console LESS compiler for Symfony projects, configurable through a .dotless config file.

Why .dotless?

  • NO third-party LESS compiler
  • EASY configuration (allows multiple output files)

Installation with Composer

php composer require mediagone/dotless

Configuration

Add your LESS configuration to a .dotless file at the root of your project.

A default configuration could be:

{
  "targets": [
    {
      "header": "/*****************************************/\n/* My compiled styles.\n/*****************************************/",
      "output": "public/styles.css",
      "includes": ["templates/"],
    }
  ]
}

The above example will compile any .less files found in the templates/ directory into the public/styles.css file.

A special type of file (.gless) can be used to define variables in each LESS file, according to their relative hierarchy:

dir/
    other_vars.gless
    other_styles.less
vars.gless
styles.less

In the previous example, vars.gless will be available in both styles.less and other_styles.less, but other_vars.gless will only be available in the later.

Usage

Compile your LESS using the following symfony's command :

php bin/console dotless:compile

You can minify the output CSS files using the --minify option:

php bin/console dotless:compile --minify

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固