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
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
you can work around this by using the patterns option but its a little ugly, heres a sample config
// Performs rewrites based on filerev and the useminPrepare configurationusemin: {html: 'dist/html/index.html',options: {assetsDirs: ['dist'],// defaults to dir of html ie dist/htmlpatterns: {html: [[/<script.+src=['"]([^"']+)["']/gm,'Update the Javascript assets to reference the correct path',undefined,function(path){return'../'.concat(path);}],[/<link[^\>]+href=['"]([^"']+)["']/gm,'Update the CSS assets to reference the correct path.',undefined,function(path){return'../'.concat(path);}],]}}},
Only downside is that, well, you have this in your GruntFile now, and you lose all the handy default replacement patterns included in lib/fileprocessor.js
would it make sense to merge defaults into this setting here?
hmm, would be nice to make this smarter, looking into the revvedfinder, fix is in there methinks
// should return paths relative to index.htmlvarfilepaths=this.getRevvedCandidates(file,searchPaths);
I am trying to put my .html files in a "pages" directory one level down from the default app/root.
According to this, it's possible to have this structure; however, it looks like asset files must be referenced w/ absolute paths.
It would be awesome to support relative paths, like this.
I'm trying to avoid absolute paths, since I'm building a microsite.
The text was updated successfully, but these errors were encountered: