Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1 KB

README.md

File metadata and controls

42 lines (26 loc) · 1 KB

Webpack Deploy Markdown Site

Blog Framework built with node 6.0 +, Webpack 2.x, Vue 2.4.x, hexo-front-matter, markdown, visit about.

Instruction

In root doler, copy .config-example.json to .config.json, config params base on your machine.

.config.json 字段说明

  • markdownPath: 本地 markdown 的绝对路径
  • hash-deploy-url: 网站部署新版本的地址
  • public-url: qiniu cdn 图片地址
  • markdown-media-url: markdown 里面的图片资源保存位置
{
  "markdownPath": "/Users/someone/Documents/blog-markdown",
  "hash-deploy-url": "http://zaishanda.com:8081/?newhash=",
  "public-url": "http://__qiniu_cdn_domain__/site/",
  "markdown-media-url": "http://__qiniu_cdn_domain__/site-media/"
}

Dir Instruction

  • webpack webpack 及 nodejs 脚本
  • build 开发与部署数据编译打包结果
  • src blog 网站页面代码

开发与部署 命令

dev

npm run dev 进入开发模式

build

npm run build 部署