How I can use Singularity Extras in a libsass workflow? I mean with npm and gulp and not with the ruby gem. Thanks in advance.
How I can use Singularity Extras in a libsass workflow?
369 views Asked by Vagelis Prokopiou At
1
How I can use Singularity Extras in a libsass workflow? I mean with npm and gulp and not with the ruby gem. Thanks in advance.
This is how I managed to set up Singularitygs + Breakpoint + Compass with Gulp (for Drupal theming).
Install gulp globally
sudo npm install -g gulpCopy the following package.json to the root folder of your project.
cdin the directory and runnpm install.Second: Create and edit your gulpfile.js like this:
Third: Require the following at the top in your "theme.styles.scss":
Fourth: Don't forget to include each and every partial in your "theme.styles.scss" like this:
If you encounter any errors with Drupal and browserSync (white screen of death), you can run this command in the root folder of your theme:
This removes the .info files of the node_modules, which create problems with Drupal. See also: https://drupal.stackexchange.com/questions/126880/how-do-i-prevent-drupal-raising-a-segmentation-fault-when-using-a-node-js-themin