Skip to content

Commit

Permalink
Change compiled js reference path
Browse files Browse the repository at this point in the history
Update compiled.js to be compiled.min.js
  • Loading branch information
garrettgalow committed May 18, 2018
1 parent 4289fed commit 0518bac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Block/Adminhtml/Index.php
Expand Up @@ -14,7 +14,7 @@ class Index extends \Magento\Framework\View\Element\Template
protected $magentoAPI;
protected $urlBuilder;

const COMPILED_JS_PATH = "js/compiled.js";
const COMPILED_JS_PATH = "js/compiled.min.js";

/**
* @param Context $context
Expand Down Expand Up @@ -43,8 +43,8 @@ public function __construct(
*/
protected function _prepareLayout()
{
//Generate link to CloudFlare/Plugin/view/web/js/compiled.js
$asset = $this->assetRepository->createAsset('CloudFlare_Plugin::js/compiled.js');
//Generate link to CloudFlare/Plugin/view/web/js/compiled.min.js
$asset = $this->assetRepository->createAsset('CloudFlare_Plugin::js/compiled.min.js');
$compiledJsUrl = $asset->getUrl();
$this->setCompiledJsUrl($compiledJsUrl);

Expand Down

0 comments on commit 0518bac

Please sign in to comment.