-
Notifications
You must be signed in to change notification settings - Fork 147
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
Overwriting existing minified file? #83
Comments
Can't reproduce. You need to show us your config. |
Same issue here. The output file grows longer each time. Any luck with this @norfali ? EDIT: Seems to have been a version conflict in my environment. Resolved now. EDIT 2: No, I take that back. It's still doing it. Just not every time. This is weird. |
Update: Doesn't happen with a single source file. Only when there are multiple .styl source files. In my case, the task is Stylus and cssmin are latest. |
Yep @jeffmcmahan - issue still occurs. The workaround was to add clean plugin for erasing files before cssmin runs. My config:
A task: Worked well for me - hope this helps :) |
Reopened the issue. This is strange, as I mentioned earlier I ran the tests without clean and the output was fine. |
Am on Windows 7. |
Ok I will look into this on Windows in the next few days and will let you know |
I'm using OSX 10.9.2. Latest Node.js, and latest grunt-contrib-clean, too. |
Strange. Long shot but what file sizes are your CSS? Also how many lines? |
Very small, in my case. Fewer than 200 lines. |
@norfali in your configuration have you tried changing: @jeffmcmahan what is your configuration? |
I'm was compiling many-to-one, as follows: cssmin: {
build: {
files: {
'demo/build/matte.min.css': [ 'demo/build/**/*.min.css' ]
}
}
} But I see the sensible way to do that is, this: cssmin: {
combine: {
files: {
'path/to/output.css': ['path/to/input_one.css', 'path/to/input_two.css']
}
}
} ... and that solved my problem. No bug in my case. |
If two files have the same part,the combined file will repeated those code.I wonder how to deal with it? |
|
When I run
grunt cssmin
, it works great by writing a new file style.min.css.However if I run
cssmin
again, instead of overwriting the contents of style.min.css as expected, it seems to append instead.This sounds like a bug but happy to be corrected!
The text was updated successfully, but these errors were encountered: