-
Notifications
You must be signed in to change notification settings - Fork 129
Description
Okay, so this is happening on Windows (10 but occurred on 8.1 too). I have no idea if the same problem exists on other platforms.
There are really two outcomes that occur when using the hash:true on each of the pipeline extensions and using either roots-contentful or roots-records configured to produce single-pages from data.
The first outcome
Functionally both dynamic content extensions work okay in that they produce pages based on a template and dynamic data sourced from the net. The issue stems from the compile timing of those generated pages and their use of a layout that uses != js() and != css() to render the outputs of js_pipeline and css_pipeline respectively.
Whilst normal jade templates referencing the layout will show hashed script and css file references, the single pages (from the dynamic extensions compilation) still show the non-hashed filename, as defined by the out parameter of the pipeline extension.
The second outcome
The hashing function in each pipeline method is executed multiple times resulting in the out file containing multiple hash numbers separated by a dot. E.g.:
build.d41d8cd98f00b204e9800998ecf8427e.d41d8cd98f00b204e9800998ecf8427e.b10659fe2ab28653f446f92b465cda00.css
This filename is the used in the non-dynamic pages like so:
<link rel='stylesheet' href='/css/build.d41d8cd98f00b204e9800998ecf8427e.d41d8cd98f00b204e9800998ecf8427e.b10659fe2ab28653f446f92b465cda00.css' />
This only occurs when using the dynamic content extensions and I am assuming because the outputs of each extension is not synchronized.