diff --git a/bin/build-sass.js b/bin/build-sass.js index 52c51aa..5c80424 100755 --- a/bin/build-sass.js +++ b/bin/build-sass.js @@ -2,7 +2,6 @@ const sass = require('node-sass') const chokidar = require('chokidar') -const argv = require('yargs').argv const path = require('path') const debounce = require('lodash/debounce') const fs = require('fs') @@ -62,7 +61,7 @@ async function compileThemesSass () { async function main () { await Promise.all([compileGlobalSass(), compileThemesSass()]) - if (argv.watch) { + if (process.argv.includes('--watch')) { doWatch() } } diff --git a/bin/globalize-css.js b/bin/globalize-css.js index 07bf9f8..a2d1352 100755 --- a/bin/globalize-css.js +++ b/bin/globalize-css.js @@ -2,7 +2,6 @@ // 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') @@ -15,7 +14,7 @@ const selectorRegex = /\n[ \t\n]*([0-9\w\- \t\n.:#,]+?)[ \t\n]*{/g const styleRegex = /