mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
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:
5
build.js
5
build.js
@@ -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)();
|
||||
|
||||
Reference in New Issue
Block a user