development
node www/index.js
testing
node www/testing.js
production
node www/production.js
or use pm2 to manage node:
pm2 start www/production.js
npm run compile
watch file change:
npm run wacth-compile
in template file
<script src="/static/js/a.js"></script>
<img src="/static/img/a.png" alt="">
<link rel="stylesheet" href="/static/css/a.js">
link image in css
.a{
background: url(../img/a.png) no-repeat;
}