2017 © Pedro Peláez
 

project combine-files

Combine files js, css, less,... for SEO. Support Nette Framework

image

galek/combine-files

Combine files js, css, less,... for SEO. Support Nette Framework

  • Saturday, October 29, 2016
  • by GcoreCZ
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,225 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

![Travis] (https://travis-ci.org/JanGalek/combine-files.svg?branch=master) Downloads this Month, (*1)

CombineFiles

Fast resolve for Google PageSpeed Insights combine warning (more css files). Now you can use generate for merge all files what you need to one file., (*2)

Package Installation

The best way to install Combine Files is using Composer:, (*3)

$ composer require galek/combine-files

Packagist - Versions, (*4)

or manual edit composer.json in your project, (*5)

"require": {
    "galek/combine-files": "^1"
}

Importat settings

You need set rootPath to parent directory of your path, (*6)

$rootPath = __DIR__;

Also you set path/directory where are your files to merge., (*7)

$path = 'css';

Example

  $path = 'css';
  $root = __DIR__;
  $basic = new \Galek\Utils\CombineFiles($root, $path);
  $basic->addFile('main.css');
  $basic->addFile('top.css');
  $basic->addFile('bot.css');
  ?>
  <link rel="stylesheet" type="text/css" href="<?php echo $basic; ?>">



Tested

Example with Nette Extension

extensions:
    css: \Galek\Utils\CombineFiles\DI\Extension
    js: \Galek\Utils\CombineFiles\DI\Extension

css:
    root: ::constant(WWW_DIR) // we can use constant, which we defined for example at index.php
    localPath: 'css'
    files:
        - style.min.css
        - nittro.full.min.css

js:
    root: ::constant(WWW_DIR)
    localPath: 'js'
    name: 'myCombinedFile' //We can named outside file
    files:
        - main.js
        - nittro.full.min.js
    public function startup()
    {
        parent::startup();
        $this->cssCombinator = $this->context->getService('css.combineFiles');
    }

    protected function beforeRender()
    {
        parent::startup();
        $this->template->cssCombined = $this->cssCombinator;
    }
    <head>
        <link rel="stylesheet" type="text/css" href="{$cssCombined}">
    </head>

The Versions

29/10 2016

dev-master

9999999-dev https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

29/10 2016

1.0.5.3

1.0.5.3 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

29/10 2016

1.0.6-stable

1.0.6.0 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

29/10 2016

1.0.5.1

1.0.5.1 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

29/10 2016

1.0.5.2

1.0.5.2 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/10 2016

1.0.4.2

1.0.4.2 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/10 2016

1.0.5

1.0.5.0 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/10 2016

1.0.4.1

1.0.4.1 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/10 2016

1.0.4

1.0.4.0 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/10 2016

1.0.2.1

1.0.2.1 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/10 2016

1.0.3

1.0.3.0 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/10 2016

1.0.2

1.0.2.0 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/06 2016

1.0.1.2

1.0.1.2 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/06 2016

1.0.1

1.0.1.0 https://jan-galek.cz

Combine files js, css, less,... for SEO. Support Nette Framework

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/06 2016

0.3

0.3.0.0 https://jan-galek.cz

Nette extension, Combine files js, css, less,... for SEO

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/06 2016

1.0

1.0.0.0 https://jan-galek.cz

Nette extension, Combine files js, css, less,... for SEO

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/06 2016

0.2

0.2.0.0 https://jan-galek.cz

Nette extension, Combine files js, css, less,... for SEO

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

01/06 2016

0.1

0.1.0.0 https://jan-galek.cz

Nette extension, Combine files js, css, less,... for SEO

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires