Closed ruben-podadera closed 10 years ago
Hmm. I haven't see this problem. Are you using isPath:true
? If you don't use that option, then you'll pass the path as is to the concat/min tasks and they'll see the path as absolute to the file system.
If that's not it, can you post your Gruntfile.js.
Ah just realized this was posted in the generator project and not in the dom_munger project. So yes, please add isPath:true
to your dom_munger read tasks. So it should look something like this:
read: {
options: {
read:[
{selector:'script[data-build!="exclude"]',attribute:'src',writeto:'appjs',isPath:true},
{selector:'link[rel="stylesheet"]',attribute:'href',writeto:'appcss',isPath:true}
]
},
src: 'index.html'
},
Clean up some issues. If you're still having problems, please reopen with details.
Hello,
My project requires to have all files as absolutes url in the index.html
Since I have done that :
If I remove the heading slash for all files in the index.html, the app.full.min.js is sucessfully generated (but then I got some javascript errors when using the app)
Any one had the same issue?
Regards,
Ruben