kriszyp/xstyle

Dojo Build Plugin Problems

stdavis opened this issue · 5 comments

When I try to run a build using the xstyle plugin I get a bunch of errors:

image

image

image

I believe that I have everything set up as you outline in your readme:

image

image

image

Do you have a working example somewhere?

It thought that app/resources/App.css being an existing file might be a problem so I switched the targetStylesheet property to point to a new file and I got far less errors:
image

Still having issues though.

Just committed fixes for these issues. You should be able to use with an existing (or new) stylesheet. Let me know if you run into more issues.

cff2d4d Fixed my build errors. Thanks!

Still one more issue. This rule:

.app .center-container [data-dojo-attach-point='mapDiv'] {
    ...
}

gets minified to this:

.app .center-container [data-dojo-attach-point='mapdiv'] {...}

If I update the selector to be div[data-dojo-attach-point='mapDiv'] then it is parsed correctly. I believe that an attribute selector without a corresponding tag name is valid CSS syntax but I could be mistaken.

Here's my attempt at this problem. Looks like we were working on it at the same time: stdavis@ed1e79b

I just excluded anything within quotes. Not sure if the toLowerCase was important to you or not.

Both versions work with my build so I'm happy either way!

I would love a new tagged version for this project that I can point my bower.json to when you get around to it. Thanks a lot! Excited to start using this tool.