Open adampatarino opened 10 years ago
I believe the assetDir
option for usemin should be assetsDirs
plural. You could also try changing your options to the following:
options: {
assetsDirs: ['dist']
}
@micahroberson Thanks for the reply. Tried your suggestion(s), still no dice =/
Not really sure what else to try.
@adampatarino What version of grunt-usemin are you on? 2.4.0?
Yes 2.4.0
@adampatarino have you tried to remove the root
options in usemin
and useminPrepare
.
By the way, do you have a test project ? I'm not sure exactly what's your problem but for me it's more about some missing regexp. Your js and css files are changed but not the referenced to your images. Where are this images references ? I bet it's in the JS but I may be wrong.
I had a problem before because mainly all my images references where set to precompiled HTML templates which means that usemin won't be able to find the references to images, because my precompiled templates are in a JS file.
I can send you my configuration if needed.
@adampatarino this issue is old now. Could you try switching to usemin 3 ?
And it would be easier if you could share a project to take a look.
This seems like a repeating issue with this repo, yet no suggestions have fixed my problem. Presently, all assets are being copied, revved, and processed correctly. However, the paths in the index and css files are not being updated to the new location / name.
Task Definitions
Task Registration
Output
As you can see, the task thinks it has processed the html and css files, however paths are not updated in either. The paths inside
<img>
tags are not updated at all, they remain the same. The same goes for the css file with it'surl()
properties.Is there something wrong with the config? Is this a known bug that's still not addressed? I believe my issue is related to #184, #368, among others.
Any suggestions?