Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

How to execute script when files change when serving Angular app

$
0
0

I have a script that transforms a markdown file (.md) into HTML and places it in a folder in an Angular app. I have a prebuild step in the package.json file that executes this script.

Then... I make edits to the .md file, run npm start and my app magically displays the new HTML... Groovy.

Once the app is served, changes to any file will trigger a rebuild. I'd like to hook into this lifecycle to run my script automatically so I don't have to stop the app and run npm start every time. Is this possible?


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>