Skip to content

Commit e3568c4

Browse files
authored
Minifying CSS and JS with Combine
Hides the path to the plugin's original assets files.
1 parent 08e9faf commit e3568c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/Buttons.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public function onRun()
6060
$this->page['shareBtns'] = $btns;
6161

6262
if ($this->property('css')) {
63-
$this->addCss('/plugins/webvpf/share/assets/css/share-' . $this->property('skin') . '.css', 'WebVPF.Share');
63+
$this->addCss(['$/webvpf/share/assets/css/share-' . $this->property('skin') . '.css'], 'WebVPF.Share');
6464
}
6565

66-
$this->addJs('/plugins/webvpf/share/assets/js/share.min.js', 'WebVPF.Share');
66+
$this->addJs(['$/webvpf/share/assets/js/share.js'], 'WebVPF.Share');
6767
}
6868
}

0 commit comments

Comments
 (0)