Установка compass

для сборки scss и css скриптов


    sudo apt-get install ruby-compass

создание конфига в папке с проектом

    compass create

настройка конфига для Laravel

    require 'compass/import-once/activate'
    # Require any additional compass plugins here.

    # Set this to the root of your project when deployed:
    http_path = "/"
    css_dir = "public/css"
    sass_dir = "resources/assets/sass"
    images_dir = "public/images"
    javascripts_dir = "javascripts"

    # You can select your preferred output style here (can be overridden via the command line):
    # output_style = :expanded or :nested or :compact or :compressed

    # To enable relative paths to assets via compass helper functions. Uncomment:
    # relative_assets = true

    # To disable debugging comments that display the original location of your selectors. Uncomment:
    # line_comments = false

    # If you prefer the indented syntax, you might want to regenerate this
    # project again passing --syntax sass, or you can uncomment this:
    # preferred_syntax = :sass
    # and then run:
    # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass

Запуск для отслеживания изменений в файлах

    compass watch
31 августа 2018, 15:02    1319

Комментарии ()

    Вы должны авторизоваться, чтобы оставлять комментарии.