diff --git a/bin/globalize-css.js b/bin/globalize-css.js new file mode 100755 index 00000000..e7218488 --- /dev/null +++ b/bin/globalize-css.js @@ -0,0 +1,46 @@ +#!/usr/bin/env node +// Change all the Svelte CSS to just use globals everywhere, +// to reduce CSS size and complexity. + +const argv = require('yargs').argv +const path = require('path') +const fs = require('fs') +const pify = require('pify') +const writeFile = pify(fs.writeFile.bind(fs)) +const readFile = pify(fs.readFile.bind(fs)) +const glob = pify(require('glob')) +const rimraf = pify(require('rimraf')) + +const selectorRegex = /\n[ \t]*([0-9\w\- \t\.:#,]+?)[ \t]*\{/g +const styleRegex = / diff --git a/routes/settings/instances/add.html b/routes/settings/instances/add.html index 2bebdd98..676c2291 100644 --- a/routes/settings/instances/add.html +++ b/routes/settings/instances/add.html @@ -16,7 +16,7 @@
@@ -27,12 +27,12 @@