Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1115 from olefredrik/update-readme
Browse files Browse the repository at this point in the history
Add info about static asset hashing in readme
  • Loading branch information
olefredrik authored Oct 10, 2017
2 parents 05877e3 + 4addc44 commit 007de03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ At the start of the build process a check is done to see if a `config.yml` file
#### Browsersync setup
If you want to take advantage of [Browsersync](https://www.browsersync.io/) (automatic browser refresh when a file is saved), simply open your `config.yml` file after creating it in the previous step, and put your local dev-server address and port (e.g http://localhost:8888) in the `url` property under the `BROWSERSYNC` object.

#### Static asset hashing / cache breaker
If you want to make sure your users see the latest changes after re-deploying your theme, you can enable static asset hashing. In your `gulpfile.babel.js`, set ``const REVISIONING = true;``. Hashing will work on the ``npm run build`` and ``npm run dev`` commands. It will not be applied on the start command with browsersync. This is by design. Hashing will only change if there are actual changes in the files.

### 3. Get started

```bash
Expand Down

0 comments on commit 007de03

Please sign in to comment.