statics

2019-07-13 admin

statics是什么

什么是statics,static assets in npm

statics使用教程帮助文档

statics

unmaintained

Warning: codebase going through major changes.

Mission

Package static assets in npm. Support client and server.

API for component authors

  • process.env.STATIC_ROOT: this is where your static files will live at runtime
  • staticRoot in package.json: this is where you put your static files. they’ll be available at the root above

API for users

  • run collect-static mymodule builddir/ and upload builddir/ to http://mycdn.com/statics/
  • run your app with STATIC_ROOT=http://mycdn.com/statics/ (trailing slash required)
    • if using browserify, use the envify transform

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-69615.html

文章标题:statics

回到顶部