Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): optionally include version in released filename
Instead of releasing the files: ``` semantic.css semantic.js semantic.min.css semantic.min.js ``` optionally release the files that include the version number and an optional revision string: ``` semantic-2.9.3-a.css semantic-2.9.3-a.js semantic-2.9.3-a.min.css semantic-2.9.3-a.min.js ``` The advantage is to make clear which version is currently being used, and preventing the browser cache from running an obsolete version. This pull-request is fully backward compatible as the default behaviour does not change at all. The change is activated in semantic.json by adding the relevant fields: ``` { // ... "permission": false, "autoInstall": false, "rtl": false, "includeVersionInFileName": true, <== Here "revision": "a", <== Optionally this, too. "version": "2.9.3" <== version that is added. } ```
- Loading branch information