-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement manifest url revving. Fixes #1
- Loading branch information
1 parent
fb575f1
commit e3a5774
Showing
7 changed files
with
189 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/** | ||
* NSM Asset Rev plugin for Craft CMS 3.x | ||
* | ||
* Various fields for CraftCMS | ||
* | ||
* @link http://newism.com.au | ||
* @copyright Copyright (c) 2017 Leevi Graham | ||
*/ | ||
|
||
/** | ||
* NSM Asset Rev config.php | ||
* | ||
* Completely optional configuration settings for NSM Fields if you want to customize some | ||
* of its more esoteric behavior, or just want specific control over things. | ||
* | ||
* Don't edit this file, instead copy it to 'craft/config' as 'nsmassetrev.php' and make | ||
* your changes there. | ||
* | ||
* Once copied to 'craft/config', this file will be multi-environment aware as well, so you can | ||
* have different settings groups for each environment, just as you do for 'general.php' | ||
*/ | ||
return array( | ||
|
||
'*' => [ | ||
|
||
/** | ||
* Fully qualified path to your manifest file | ||
*/ | ||
'manifestPath' => CRAFT_BASE_PATH.'/manifest.json', | ||
|
||
/** | ||
* Prefixed to the manifest value. | ||
* | ||
* If the final url assetUrlPrefix + manifest url is relative the siteUrl | ||
* will be appended. If the final qualified url is absolute or contains a | ||
* fully qualified domain it will not be modified. | ||
*/ | ||
'assetUrlPrefix' => '', | ||
], | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace newism\assetrev\models; | ||
|
||
class Settings extends \craft\base\Model | ||
{ | ||
public $manifestPath; | ||
public $assetUrlPrefix; | ||
|
||
public function rules() | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters