rtCamp / blank-theme

Customized Blank theme based on Underscore and Foundation
25 stars 23 forks source link

Updates assets to use hashed files for cache bust. #31

Closed divyarajmasani closed 4 years ago

divyarajmasani commented 4 years ago
  1. Enables usage of built assets with hashed paths.

    • Though we were generating hashed files for production build, the file that were being referenced did not use the hash, resulting in file being not registered.
    • This PR adds functionality to us appropriate file for either dev or production builds. It reads the manifest.json generated to identify the current asset paths.
  2. Adds utility functions to retrieve current hashed path for built assets.

  3. Removes deprecated PHPCompat sniff from phpcs.xml in favor of CMS specific sniffs.