-
Notifications
You must be signed in to change notification settings - Fork 141
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
compiled to an empty css file #23
Comments
I am running the same code at home on MAC, and it works fine, the compiled css file (base.css) now has It looks like something is wrong on the pc at my work? Please see verbose below. MacPro:template Chinh$ grunt sass --verbose Reading "Gruntfile.js" Gruntfile...OK Registering Gruntfile tasks. Registering "grunt-contrib-sass" local Npm module tasks.
Running tasks: sass Running "sass" task Running "sass:dist" (sass) task |
I was experiencing this same issue. grunt-contrib-sass silently fails if the input file name or path is wrong. This should be fixed. |
I'm honestly not sure what's wrong here. Though looks like there's a problem on your end since you're the only one reporting this issue. Did you manage to figure it out? |
The error is caused by the manual config that I've set in the Command Processor (Windows registry), from which I've added an autorun to change the default command prompt. |
Agreed. It took me a couple minutes to figure out what was going on, especially with the "Done, without errors" message. |
@robwierzbowski this task is just using the standard grunt API. This is something that should be in grunt itself if it's deemed needed. Feel free to open an issue about it over at gruntjs/grunt after making sure there isn't already a ticket for it (even closed ones). |
Thanks, will do. |
I am having this exact same issue using 0.5.0, been using grunt with cygwin with no issues until this, css file is created but is empty. Sass outside of grunt is working fine, node.js is good. using grunt 0.4.1, with node 0.10.19. Verbose mode gives me nothing fishy, I get the following which makes an empty css file: Running "sass:server" (sass) task
I am not sure how niusaul was able to come to a fix, I don't have any manual config in registry or anything. Any insight would be greatly appreciated. |
Yup, same issue here on a Mac. All other tasks pass. Sass version Sass 3.2.10 Gruntfile.js sass: {
compile: {
options: {
check: true,
style: 'compressed',
},
files: {
'lists/assets/stylesheets/all.css': 'lists/assets/stylesheets/lists.scss',
},
},
}, package.json "devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-uglify": "~0.2.4",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-sass": "~0.5.0",
"grunt-contrib-watch": "~0.5.3"
} Output of grunt
I ran |
Looks like the issue is with the sass option Maybe this issue should be reopened? |
I'm hitting this as well, with 0 changes made to the original Gruntfile. Running grunt server compiles everything nicely and I can view it just fine locally. Its when I try to get a deployable version that this fails. Probably grunt is unable to copy the .tmp/styles/* files? |
Are you using usemin? On Sunday, October 6, 2013, Itamar Syn-Hershko wrote:
Rob Wierzbowski |
In my grunt build task - yes There seem to be an issue with cssmin tho - it prevented the files from being copied from .tmp to dist. Fixed it by using:
Are there more issues I should be aware of? |
I figured out what my issue was anyway. around line 58 of sass.js there is an if statement that makes the command sass.bat instead of sass if the process.platform is 'win32' ... because sass runs just fine on windows I commented out the if statement and left the command to be set to 'sass' always... this fixed my issue and I am now getting a populate css file. |
Also to further explain sass.bat had permission denied errors otherwise this might work using cygwin... the only error handling on the spawn is if sass or ruby is not installed, this might be expanded to permission errors as well, or maybe a catch all, just food for thought. |
Hi , grunt -vGruntfile.js
Aborted due to warnings. Aborted due to warnings. Please help out this problem. |
Hello,
I am sorry to bring the problem here cause I think it's not an issue, I just can't find the answer to the problem. I've been goggling and through forums for days now. Kind of desparated.
I am trying to compile scss file using the grunt-contrib-sass plugin (with grunt v0.4.0). The compiled result is an empty css file, but if through Sass, already installed on my pc, it works fine. Below are the base.scss, Gruntfile.js and package.json files.
base.scss
Gruntfile.js
package.json
Result:
Either I run the sass command "grunt sass" or "grunt sass--", the result is just an empty css file without any errors.
Your help is greatly appreciated
Niusaul
The text was updated successfully, but these errors were encountered: