Menu icon Foundation
Compile SASS to custom location

Hi,

 

I am running Foundation 6 Sites in a non public directory so want to setup my SASS compiler to create the .css file in a different folder that is public on the server.  I installed Foundation 6 with the manual installation process i.e. doing a clone of the git repo (git clone https://github.com/zurb/foundation-sites-template), did the npm install and then the bower install.  Does anyone know where the write location is set by the SASS compiler (i think this is node-sass)?

 

Thanks

node-sassSass

Hi,

 

I am running Foundation 6 Sites in a non public directory so want to setup my SASS compiler to create the .css file in a different folder that is public on the server.  I installed Foundation 6 with the manual installation process i.e. doing a clone of the git repo (git clone https://github.com/zurb/foundation-sites-template), did the npm install and then the bower install.  Does anyone know where the write location is set by the SASS compiler (i think this is node-sass)?

 

Thanks

Ronan over 3 years ago

Got it figured out eventually.  For anyone else interested in this Foundation 6 uses Gulp to compile the css.  The destination folder for the compiled css file is set in the gulpfile.js at the root of your Foundation Folder.  Change the argument to your required destination folder here:

 

.pipe(gulp.dest('new_destination_path'));