ubc-web-services / Megatron

Drupal 7 theme for the UBC CLF
http://ubc-web-services.github.com/Megatron/
9 stars 8 forks source link

Add dependecies for postcss and autoprefixer #55

Closed yehee closed 6 years ago

yehee commented 6 years ago

Run:

$ npm install

to run postcss autoprefixer against all the CSS files reside in css folder and to be saved under postcss folder.

I was not sure where to store the files afterwards, so please have a look into this pull request.

joelpittet commented 6 years ago

Thanks for creating this PR @alice-0-kim! This would be so cool not to have to think about!

I'm a yarn fan, but maybe I shouldn't be, just wanted to bring it to your attention as that is what I used for the other node related issue.

I like the npm scripts in here, that's the way I'm leaning instead of all the other task runners like grunt/gulp/etc

joelpittet commented 6 years ago

I did a small change to the script that should have it work without npx and has browsers (that may need direction from @occupant ) . It would be nice if the CSS files weren't compressed so the diffs were easier to read. I removed the install script(as I'm not sure how that would work since npm install should do that already) and changed the script name a bit but feel free to change that back or improve on that name.