mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-09 23:07:30 -06:00
new styling for frontpage, update login and authorize templates
This commit is contained in:
parent
82d9f88e42
commit
bcf9fe41c2
18 changed files with 873 additions and 60 deletions
23
web/source/build.js
Normal file
23
web/source/build.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"use strict";
|
||||
|
||||
const fs = require("fs").promises;
|
||||
const postcss = require('postcss');
|
||||
const {parse} = require("postcss-scss");
|
||||
|
||||
const postcssPlugins = ["postcss-strip-inline-comments", "postcss-nested", "postcss-simple-vars", "postcss-color-function"].map((plugin) => require(plugin)());
|
||||
|
||||
let inputFile = `${__dirname}/style.css`;
|
||||
let outputFile = `${__dirname}/../assets/bundle.css`;
|
||||
|
||||
fs.readFile(inputFile, "utf-8").then((input) => {
|
||||
return parse(input);
|
||||
}).then((ast) => {
|
||||
return postcss(postcssPlugins).process(ast, {
|
||||
from: "style.css",
|
||||
to: "bundle.css"
|
||||
});
|
||||
}).then((bundle) => {
|
||||
return fs.writeFile(outputFile, bundle.css);
|
||||
}).then(() => {
|
||||
console.log("Finished writing CSS bundle");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue