Coder Social home page Coder Social logo

usdx-website's Introduction

vue-router

install

npm install

watch

npm run watch

build

npm run build

dev

npm run dev

pack

npm run pack

clean

npm run clean

本地开发

You just need to run npm run dev.

打包上线

npm run build

本地测试

npm run test

特别说明

dist文件夹里面的文件为上线文件,其他文件均为开发文件。

项目介绍

  1. dist/ 输出/上线目录,所有被编译的文件都会输出到此目录
  2. src/data/ 某些数据
  3. src/libs/ 插件目录
  4. src/modules/ 自定义模块目录
  5. src/store/ vuex目录
  6. src/styles/ css目录
  7. src/view/ 页面目录
  8. src/router vue-router路由文件
  9. images/ 图片目录
  10. images/static/ 此文件夹下 图片/目录 不会被压缩、base64处理
  11. build/ 配置信息

截止到2017-09-21 15:54,package.json模块最新版
如果问题,请联系我

history 后台配置

Apache
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>
nginx
location / {
  try_files $uri $uri/ /index.html;
}
nodejs
const http = require('http')
const fs = require('fs')
const httpPort = 80

http.createServer((req, res) => {
  fs.readFile('index.htm', 'utf-8', (err, content) => {
    if (err) {
      console.log('We cannot open \'index.htm\' file.')
    }

    res.writeHead(200, {
      'Content-Type': 'text/html; charset=utf-8'
    })

    res.end(content)
  })
}).listen(httpPort, () => {
  console.log('Server listening on: http://localhost:%s', httpPort)
})
Caddy
rewrite {
    regexp .*
    to {path} /
}

usdx-website's People

Contributors

bankoneprotocol avatar aaron-xue avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.