actually fixed windows scss build

This commit is contained in:
2020-08-04 18:12:18 +01:00
parent a38045cefb
commit 8d265879cc
2 changed files with 16 additions and 6 deletions

View File

@@ -14,12 +14,12 @@ def runcmd(cmd):
print('Installing npm packages')
if os.name == "nt":
print("Note: npm on windows installs all packages in the root directory, so things might get ugly.")
root_path = Path(__file__).parents[1]
runcmd(f'npm install --prefix {root_path}')
if os.name == 'nt':
root_path /= 'node_modules'
runcmd(f'npm install')
if (root_path / 'node_modules' / 'cleancss').exists():
print(f'Installed successfully in {str((root_path / "node_modules").resolve())}.')