1
0
mirror of https://github.com/fenwick67/mastofeed synced 2024-12-26 00:44:27 +01:00
mastofeed-iframe-embed/build-styles.js

23 lines
452 B
JavaScript
Raw Normal View History

2017-05-02 05:11:29 +02:00
// build the styles
var fs = require('fs');
var sass = require('node-sass');
var staticDir = './static/'
var srcDir = './stylesrc/';
2019-11-04 23:22:03 +01:00
var themes = ['light','dark','auto'];
2017-05-02 05:11:29 +02:00
themes.forEach(function(s){
var sassFile = srcDir+s+'.scss'
var cssFile = staticDir+s+'.css'
var result = sass.renderSync({
data: fs.readFileSync(sassFile,'utf8'),
includePaths:[srcDir]
});
fs.writeFileSync(cssFile,result.css,'utf8')
});
console.log('ok');