fixes to assets

This commit is contained in:
Parziphal 2013-10-02 21:52:28 -05:00
parent dd77ea7fa8
commit a3ac175563
3 changed files with 4 additions and 7 deletions

View File

@ -496,7 +496,7 @@ class Assets
$class = $conf['class_name'];
$method = $conf['method'];
$static = empty($conf['static']);
$static = isset($conf['static']) && $conf['static'];
if (!empty($conf['file'])) {
require_once $conf['file'];

View File

@ -338,14 +338,10 @@ class Base
foreach ($this->file->extensions() as $ext) {
if ($ext == 'php') {
$contents = PHParser::parseContents($contents);
// $contents = $parser->parse();
} else {
$key = $this->file->type() . '_extensions';
// if (!$this->config()->$key)
// vpe($key);
// vpe($this->config()->$key);
$conf = $this->config()->$key->$ext;
// $conf = $this->config()['parsers'][self::EXTENSION][$ext];
if (!$conf) {
throw new Exception\RuntimeException(

View File

@ -196,7 +196,8 @@ $config->assets = [
],
'js_compressor' => [
'class_name' => 'Rails\Assets\Parser\Javascript\ClosureApi\ClosureApi',
'method' => 'minify'
'method' => 'minify',
'static' => true
],
/**