Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS SASS with Guard locally in WordPress

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #45033
    twincy
    Participant

    can’t get Guard-sass to complile my styl;e.scss into style.css **in the root** of my theme folder.

    tried this


    guard 'sass', :input => '/', :output => '/'

    and so on…
    do i have to use a sass folder as input and a css folder as output?

    wordpress wants the stylesheet in the root.

    will probably use Prepros soon, but i’d like this to work.

    any thoughts?

    #136394
    Alen
    Participant

    Where is your SASS file located? Theme folder, sub-folder?

    #136551
    twincy
    Participant

    sass-file in /my-theme/sass and the output css in /my-theme/css.

    just figured out that if i just put them both in the theme root like this


    guard 'sass', :input => 'my-theme', :output => 'my-theme'

    and i’ll get my style.css where wordpress wants it.

    would be nice though to have the sass-file in another folder, but it’s not important at the moment.

    sort of Solved :)

    #136553
    twincy
    Participant

    ok. got it.

    guard 'sass', :input => 'my-theme/sass', :output => 'my-theme'

    sass file in it’s own folder and the output in the root. sweet.
    just gotta make sure that i init the guardfile in the parent folder of the theme.

    now it IS solved :)

    #141785
    twincy
    Participant

    i switched to compass now and work with “` compass watch “` so i set it in the config.rb. just sayin’.

    #141798
    andymacleod
    Participant

    Prepros is fantastic :)

    #141864
    twincy
    Participant

    ah there u go. forgot about it. time to test it out :)
    tnx.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.