mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
IMPR: minor
This commit is contained in:
parent
cc43b7dca6
commit
4c3fb3cf73
@ -146,7 +146,12 @@ class PageController extends ContentController
|
||||
);
|
||||
|
||||
foreach ($elements as $element) {
|
||||
$page = Page::get()->filter('ElementalAreaID', $element->getField('ParentID'))->first();
|
||||
if (!is_a($element, \DNADesign\Elemental\Models\BaseElement::class)
|
||||
&& !$element->hasMethod('getPage')) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$page = $element->getPage();
|
||||
if (! $page) {
|
||||
continue;
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ minimizers.push(
|
||||
reserved: ['$', 'jQuery', 'jquery'],
|
||||
},
|
||||
output: {
|
||||
ecma: 5,
|
||||
ecma: 6,
|
||||
comments: false,
|
||||
// Turned on because emoji and regex is not minified properly using default
|
||||
// https://github.com/facebook/create-react-app/issues/2488
|
||||
|
Loading…
Reference in New Issue
Block a user