finally removed node-gyp dependency

updated gulp-sass and switched it to use the official sass package, which is pure javascript. it should now be buildable out of the box on windows. closes #64
This commit is contained in:
Sam Keddy
2021-12-08 18:42:09 -05:00
parent 43abd38ebf
commit fd064ebb21
3 changed files with 421 additions and 1872 deletions

View File

@@ -3,7 +3,7 @@ const path = require('path');
const gulp = require('gulp');
const include = require('gulp-include');
const handlebars = require('gulp-hb');
const sass = require('gulp-sass');
const sass = require('gulp-sass')(require('sass'));
const rename = require('gulp-rename');
//const hb_svg = require('handlebars-helper-svg');
@@ -63,6 +63,9 @@ function compile_page(){
// empty the build folder, or create it
try {
fs.rmdirSync(BUILDDIR, { recursive: true });
fs.mkdirSync(BUILDDIR);
} catch (err) {console.log('failed to find build folder, but it\'s probably fine')}
gulp.parallel(copy_images, copy_logs, render_js, render_css, compile_page)();