Using node-sass watch option with npm run-script

前端 未结 6 1276
难免孤独
难免孤独 2020-12-05 10:46

So I\'m running tasks in npm package scripts but I want to pass the watch option in npm start.

This works:

\"scripts\": {
  \"scss\": \"         


        
6条回答
  •  时光说笑
    2020-12-05 11:00

    Btw, here's my change:

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

    Edit: Change was asynchronous script runs, for the initial compile and then with the watch flag.

提交回复
热议问题