Create Configuration file
Create a JavaScript file named reference.js in the site root (/reference.js) and export a variable called ref. This object holds the entire Fragmanium configuration.
/reference.js
export const ref ={
unique:[<css selector>],
constant:[
selector: <css selector>,
path: <absolute fragment path>,
except:{
<absolute page path>: <absolute fragment path>
}
],
common:[
{
selector: <css selector>,
default: <absolute fragment path>,
except:{
<absolute directory path>: <absolute fragment path>
}
}
],
swap:{
<css selector>: <absolute fragment path>
},
js:{
every:[<absolute fragment path>],
constant:[<absolute fragment path>],
specific:{
<absolute page path>:[<absolute fragment path>]
},
common:{
<absolute directory path>:[<absolute fragment path>]
}
},
css:{
constant:[<absolute fragment path>],
specific:{
<absolute page path>:[<absolute fragment path>]
},
common:{
<absolute directory path>:[<absolute fragment path>]
}
}
}
copy