123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <!DOCTYPE html>
- <html lang="en-US">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <title>Directory Guide | 偶游前端</title>
- <meta name="generator" content="VuePress 1.9.7">
-
- <meta name="description" content="">
-
- <link rel="preload" href="/docs/assets/css/0.styles.d94ea0ab.css" as="style"><link rel="preload" href="/docs/assets/js/app.2431a00a.js" as="script"><link rel="preload" href="/docs/assets/js/2.f7777874.js" as="script"><link rel="preload" href="/docs/assets/js/19.29f587ce.js" as="script"><link rel="prefetch" href="/docs/assets/js/10.9d1aad53.js"><link rel="prefetch" href="/docs/assets/js/11.30b895bf.js"><link rel="prefetch" href="/docs/assets/js/12.875be95c.js"><link rel="prefetch" href="/docs/assets/js/13.5a9efc48.js"><link rel="prefetch" href="/docs/assets/js/14.b907632b.js"><link rel="prefetch" href="/docs/assets/js/15.4905f579.js"><link rel="prefetch" href="/docs/assets/js/16.76ac9ec7.js"><link rel="prefetch" href="/docs/assets/js/17.2ddbc696.js"><link rel="prefetch" href="/docs/assets/js/18.38ed2bd0.js"><link rel="prefetch" href="/docs/assets/js/20.fedca497.js"><link rel="prefetch" href="/docs/assets/js/21.70316301.js"><link rel="prefetch" href="/docs/assets/js/22.d06b9c4f.js"><link rel="prefetch" href="/docs/assets/js/23.cfe38809.js"><link rel="prefetch" href="/docs/assets/js/24.ca50f3c1.js"><link rel="prefetch" href="/docs/assets/js/3.a1131818.js"><link rel="prefetch" href="/docs/assets/js/4.d31729fa.js"><link rel="prefetch" href="/docs/assets/js/5.4e04916d.js"><link rel="prefetch" href="/docs/assets/js/6.91b60684.js"><link rel="prefetch" href="/docs/assets/js/7.467cbd0c.js"><link rel="prefetch" href="/docs/assets/js/8.de63b438.js"><link rel="prefetch" href="/docs/assets/js/9.d353de00.js">
- <link rel="stylesheet" href="/docs/assets/css/0.styles.d94ea0ab.css">
- </head>
- <body>
- <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/docs/" class="home-link router-link-active"><!----> <span class="site-name">偶游前端</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><!----> <ul class="sidebar-links"><li><a href="/docs/" aria-current="page" class="sidebar-link">偶游前端(冯垣玮)</a></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>项目</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/currentProgram/guide.html" class="sidebar-link">智能鞋落地页</a></li><li><a href="/docs/currentProgram/uni-app-pro.html" class="sidebar-link">智能鞋小程序商城</a></li><li><a href="/docs/currentProgram/customerService.html" class="sidebar-link">智能鞋客服系统</a></li><li><a href="/docs/currentProgram/tank.html" class="sidebar-link">坦克专题</a></li><li><a href="/docs/currentProgram/hiydMini.html" class="sidebar-link">hi运动教练小程序</a></li><li><a href="/docs/currentProgram/hiydShop.html" class="sidebar-link">hi运动商城</a></li><li><a href="/docs/currentProgram/webGame.html" class="sidebar-link">多玩游戏大厅</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="directory-guide"><a href="#directory-guide" class="header-anchor">#</a> Directory Guide</h1> <hr> <p>静态资源目录规范指南。</p> <hr> <p><strong>【强制】</strong> 所有资源类型必须按以下目录放置;</p> <h2 id="工作流默认目录"><a href="#工作流默认目录" class="header-anchor">#</a> 工作流默认目录</h2> <div class="language-html extra-class"><pre class="language-html"><code>src/ # static resource directory
- |
- |-- css/ # all generated CSS
- | |-- global.sss # the global stylesheet
- | ...
- |
- |-- img/ # all images
- | |-- bg-body.jpg # body background
- | ...
- |
- |-- js/ # all javascript files
- | |-- main.js # general documentation
- | |-- vendor # third-party plugins
- | |-- modernizr-2.8.3.min.js
- | |-- ...
- | ...
- |
- |-- sass/ # all SASS files
- | |-- global.scss # the global SASS
- | |-- _slice.scss # automatic img to css
- | |-- base # the base SASS
- | |-- _base.scss
- | |-- _mixins.scss
- | |-- _normalize.scss
- | |-- lego # the LEGO UI SASS
- | |-- _lego.scss
- | |-- _ui-box.scss
- | |-- _ui-tab.scss
- | |-- ...
- | |-- biz1 # the business SASS
- | |-- ...
- | |-- biz2 # the business SASS
- | |-- ...
- |
- |-- tpl/ # the templates
- | |-- ...
- |
- `-- index.html # the html file
- </code></pre></div><h2 id="完整目录"><a href="#完整目录" class="header-anchor">#</a> 完整目录</h2> <ul><li>当该项目为中大型项目或长期维护项目时,请手动添加README.md填写相关文档,<a href="https://github.com/duowan/document-template" target="_blank" rel="noopener noreferrer">文档参考模板<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>;</li> <li>当该项目有需要使用web字体时时,请手动添加<strong>font</strong>目录放置字体文件,如有多个字体,请分开文件夹存放;</li> <li>当该项目有需要使用flash文件时,请手动添加<strong>swf</strong>目录放置flash文件;</li></ul> <div class="language-html extra-class"><pre class="language-html"><code>src/ # static resource directory
- |
- |-- css/ # all generated CSS
- | |-- global.sss # the global stylesheet
- | ...
- |
- |-- img/ # all images
- | |-- bg-body.jpg # body background
- | ...
- |
- |-- js/ # all javascript files
- | |-- main.js # general documentation
- | |-- vendor # third-party plugins
- | |-- modernizr-2.8.3.min.js
- | |-- ...
- | ...
- |
- |-- sass/ # all SASS files
- | |-- global.scss # the global SASS
- | |-- _slice.scss # automatic img to css
- | |-- base # the base SASS
- | |-- _base.scss
- | |-- _mixins.scss
- | |-- _normalize.scss
- | |-- lego # the LEGO UI SASS
- | |-- _lego.scss
- | |-- _ui-box.scss
- | |-- _ui-tab.scss
- | |-- ...
- | |-- biz1 # the business SASS
- | |-- ...
- | |-- biz2 # the business SASS
- | |-- ...
- |
- |-- font/ # all web fonts
- | ...
- |
- |-- swf/ # the flash files
- | |-- logo-duowan.swf
- | |-- ...
- |
- |-- tpl/ # the templates
- | |-- ...
- |
- `-- README.md # the project document
- `-- index.html # the html file
- </code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <!----> </main></div><div class="global-ui"></div></div>
- <script src="/docs/assets/js/app.2431a00a.js" defer></script><script src="/docs/assets/js/2.f7777874.js" defer></script><script src="/docs/assets/js/19.29f587ce.js" defer></script>
- </body>
- </html>
|