Skip to content

Specific JavaScript file parsed as CSS? #4

@HunterGraubard

Description

@HunterGraubard

I'm running minify-all ./input yui. Everything I tried apart from yui wouldn't work at all for some reason, but yui did, so I settled on that. All I want to do is minify some JavaScript files. I don't care about CSS and don't have any CSS files in the input directory at all.

This worked at first, but now I have one particular JavaScript file that's causing an error. I don't want to share the file unfortunately, which might make this difficult to debug, but it has a lot of comments which is the main difference from my other files, so maybe that's making it get picked up as CSS or something.

When I run the command, the terminal output shows an enormous error message that's so long I can't even see the start of it in the terminal anymore. It has many lines of at java.util.regex.Pattern$..., followed by the line: cmd: 'java -jar -Xss2048k "C:\\Test\\node_modules\\node-minify\\lib/yuicompressor-2.4.7.jar" "input\\test.js" -o "input\\test.js" --type css '.

The key thing that I notice there is --type css. It seems like it's trying to parse it as CSS when it shouldn't be.

I'm not sure if this is a problem with node-minify-all or node-minify or yui. Any ideas?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions