neosrulez/scssparser

Last activity on 11 November 2020
  • 1
  • 928
composer require neosrulez/scssparser

A package to compile SCSS for Neos CMS

1.7.3

A package to compile SCSS for Neos CMS

Version
1.7.3
Type
neos-plugin
Release Date
28.11.2020 16:05:06
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
GPL-3.0-or-later c0163ee6f7543ae1c67b6b204ae33be8d9239aa8

Neos CMS SCSS Parser

A Neos CMS plugin to compile SCSS for Neos CMS

Installation

The NeosRulez.ScssParser package is listed on packagist (https://packagist.org/packages/neosrulez/scssparser) - therefore you don't have to include the package in your "repositories" entry any more.

Just add the following line to your require section:

"neosrulez/scssparser": "*"

And the run this command to fetch the plugin:

composer update

Fusion

In your site package Fusion file you can add the .scss files to compile

prototype(Neos.Neos:Page) {
    head {
        yourcss1 = NeosRulez.ScssParser:ScssFile
        yourcss1 {
            source = 'resource://Your.Site/Private/Styles/app.scss'
            inline = FALSE
            format = 'compressed'
            #format = 'expanded'
            #format = 'nested'
            #format = 'compact'
            #format = 'crunched'
            # You need outputFolder only if inline = FALSE
            outputFolder = 'resource://Your.Site/Public/Styles/'
        }

        yourcss2 = NeosRulez.ScssParser:ScssFile
        yourcss2 {
            source = 'resource://Your.Site/Private/Styles/test.scss'
            inline = FALSE
            format = 'compressed'
            #format = 'expanded'
            #format = 'nested'
            #format = 'compact'
            #format = 'crunched'
            # You need outputFolder only if inline = FALSE
            outputFolder = 'resource://Your.Site/Public/Styles/'
        }
    }
}

Author

The content of the readme is provided by Github
The same vendor provides 22 package(s).