Area: Optimizely B2B Commerce

Setting up Sass in Classic

Recommended reading 

NOTE: Command Prompt, PowerShell, and Visual Studio all need to be run as Administrator.

  1. Run the command below in a Command Prompt as administrator to Install Chocolatey to assist in installing some of the dependencies.
    @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
  2. Open PowerShell as administrator
  3. Install nodejs by running the following command in PowerShell as administrator, Node.js is a dependence of Grunt:
    choco install nodejs.install --force

    Enter 1 to run the script.

  4. Install ruby by running the following command in PowerShell as administrator, Ruby is a dependency for SASS as it is a gem from Ruby:
    choco install ruby --force

    IMPORTANT: B2B is not compatible with the most recent release (v2.5.0.1 -released 12/26/2017) of Ruby. To avoid installation issues with Sass, please use v2.4.3.1.
  5. Restart PowerShell as administrator so that new Windows Environment variables get picked so we can continue the setup
  6. Run the following commands in PowerShell:
    Installs Grunt
    npm install -g grunt-cli
    Installs Compass
    gem install compass
Do you find this information helpful? Please log in to provide feedback.

Last updated: Dec 11, 2020

Recommended reading