Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
upload
README.md
index.js
production.js
testing.js

README.md

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

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;
}
You can’t perform that action at this time.