From 319a158deb2ebcbbf9eeb4e90cee28961d3fdac2 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 13 Dec 2018 21:32:25 -0800 Subject: [PATCH] fix: remove non-functional globalize/deglobalize scripts (#800) fixes #787 --- bin/globalize-css.js | 45 -------------------------------------------- package.json | 4 +--- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100755 bin/globalize-css.js diff --git a/bin/globalize-css.js b/bin/globalize-css.js deleted file mode 100755 index a2d1352..0000000 --- a/bin/globalize-css.js +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env node -// Change all the Svelte CSS to just use globals everywhere, -// to reduce CSS size and complexity. - -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\n]*([0-9\w\- \t\n.:#,]+?)[ \t\n]*{/g -const styleRegex = /