fixes to assets
This commit is contained in:
parent
dd77ea7fa8
commit
a3ac175563
@ -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'];
|
||||
|
@ -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(
|
||||
|
@ -196,7 +196,8 @@ $config->assets = [
|
||||
],
|
||||
'js_compressor' => [
|
||||
'class_name' => 'Rails\Assets\Parser\Javascript\ClosureApi\ClosureApi',
|
||||
'method' => 'minify'
|
||||
'method' => 'minify',
|
||||
'static' => true
|
||||
],
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user