Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bless not working and creating empty source file #14

Open
vinu4git opened this issue Aug 21, 2014 · 3 comments
Open

Bless not working and creating empty source file #14

vinu4git opened this issue Aug 21, 2014 · 3 comments
Labels

Comments

@vinu4git
Copy link

I have configured bless as follows

bless: {
css: {
options: {
compress: true,
force: false,
cacheBuster: true
},
files: {
'../consumer/theme/app.css': '../consumer/theme/out.css'
}
}
},

Have added a watch on the css file to trigger bless. But the split does not happen the source file turns empty after tasks run from watch.

Blessc of the file actually works. Any idea what could be wrong?

image

@AaronAsAChimp
Copy link
Member

Just to confirm '../consumer/theme/out.css' is the source and '../consumer/theme/app.css' is the destination. If you have these backward it would explain your issue.

@kerryj89
Copy link

kerryj89 commented Apr 2, 2015

That was my issue as well. I was thinking the left side was the source and right was the destination. I guess I should've read into the "input" directory name more in your example :P

Thanks for grunt-bless, Aaron.

@AaronAsAChimp
Copy link
Member

Yes, thats why I leave this ticket open :D Grunt is the one handles the source/dest mappings so its out of my control. In the latest version (0.2.0), grunt-bless will refuse to overwrite the source file to prevent mistakes like this from destroying anything.

There are other, less confusing, ways of specifying source/dest mappings that you can read about here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants