Mithilfe von Knoten-sass-watch-option mit npm run-Skript

So, ich bin mit Aufgaben in der npm-Paket-Skripte, aber ich wollen, übergeben Sie die Uhr-option in npm start.

Dies funktioniert:

"scripts": {
  "scss": "node-sass src/style.scss dist/style.css -w"
}

Diese nicht kompilieren, anschauen, oder werfen Fehler:

"scripts": {
  "scss": "node-sass src/style.scss dist/style.css",
  "start": "parallelshell \"npm run scss -- -w\""
}

Funktioniert nicht ohne parallelshell entweder mit oder ohne Kürzel.

Ich nehme an, das problem ist das run-Skript übergeben wird das zusätzliche argument in Anführungszeichen, damit der Befehl kommt wie:

node-sass src/style.scss dist/style.css "-w"

Ich würde dies gerne arbeiten, ohne jegliche Abhängigkeiten. Was bin ich?

Btw, ich bin in Windows 10 mit Eingabeaufforderung/git bash.

InformationsquelleAutor Ryan Metin | 2016-01-14

Schreibe einen Kommentar