mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-18 14:26:56 +00:00
551 B
551 B
application
start server
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
compile es6 code
npm run compile
how to link resource
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;
}