2016-01-07 09:51:09 +08:00
..
2016-01-05 10:21:09 +08:00
2016-01-07 09:51:09 +08:00
2015-12-02 10:37:08 +08:00
2015-08-25 17:43:53 +08:00
2015-12-02 10:37:08 +08:00

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

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;
}