Coder Social home page Coder Social logo

asset's Introduction

Asset logo

Installation

Laravel 5+
"require": {
  "serafim/asset": "2.*"
}
Laravel 4.2 (Legacy)
"require": {
  "serafim/asset": "1.*"
}

asset's People

Contributors

jureth avatar serafimarts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

asset's Issues

Config Url

Config Url not working, i dont get the full url path for $asset->compile([])

compress image

Правильно ли я понимаю, что для картинок, например: asset_file('test.jpeg') или php asset_link('test.jpeg') не происходит сжатия, как для css и js файлов? Поэксперементировал с картинкой размером 594Кб, после создания asset файла в public/assets, размер не изменился.
Если такого сжатия нет, тогда какая целесообразность использовать asset картинок?

Изменить порядок компиляции манифеста

Текущая логика:

  • Получить зависимости (обработать как манифест)
  • Собрать каждый файл
  • Подключить внутрь родителя
  • Скомпилировать родителя

Требуется:

  • Собрать родителя (манифест)
  • Получить зависимости
  • Собрать зависимости
  • Подключить внутрь родителя

Какие проблемы в текущей логике: Файл манифеста должен быть в форматах js или css, либо не использовать синтаксис манифеста, т.к. собранный код (например в js) выкинет ошибку при компиляции с помощью препроцессора (например coffee)
Что даст: Позволит использовать любое сочетание файлов стилей и\или скриптов

separate cache and url

Can you separate cache and url?

I have 2 folder one for css and js and the other one for cache,
if you can make something like that : $asset->compile(['css/test.css', 'js/test.js']); form css/js folder and $asset->get_asset(); from cache

Exception error

Здравствуйте.

При обработке исключений, например:

throw new FileNotFoundException(sprintf($messageNotFound, [$fpath]))

выскакивает ошибка

Array to string conversion

Предлагаю заменить sprintf на vsprintf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.