You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration.md
+25-27Lines changed: 25 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ For our examples, we'll assume the following `rev-manifest.json`:
10
10
"js/lib.js": "js/lib-6d94673e3d.js",
11
11
"css/app.css": "css/app-a4ae3dfa4d.css"
12
12
}
13
-
````
13
+
```
14
14
15
15
16
16
## Approach #1 - Generate index.html during build
17
17
18
18
One approach to working with `rev-manifest.json` is to use a templating language, such as [handlebars](http://handlebarsjs.com), to generate an `index.html` file which contained your fingerprinted files embedded into the page.
19
19
20
-
The idea is to read in your app's `rev-manifest.json`, and use the non-fingerprinted path to read in the fingerprinted path and inject it into the page. Note, this approach requires the `'compileindex.html'` task to be run as part of your build process.
20
+
The idea is to read in your app's `rev-manifest.json`, and use the non-fingerprinted path to read in the fingerprinted path and inject it into the page. Note, this approach requires the `'compile-index-html'` task to be run as part of your build process.
21
21
22
22
#### `index.hbs`
23
23
@@ -38,32 +38,30 @@ The idea is to read in your app's `rev-manifest.json`, and use the non-fingerpri
38
38
#### `gulpfile.js`
39
39
40
40
```js
41
-
var fs =require('fs');
42
-
var gulp =require('gulp');
43
-
var handlebars =require('gulp-compile-handlebars');
0 commit comments