giiska / webpack-deploy-markdown-site

Blog Framework built with Webpack, Vue, hexo-front-matter, markdown

Home Page:http://zaishanda.com/about

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 部署

About

Blog Framework built with Webpack, Vue, hexo-front-matter, markdown

http://zaishanda.com/about


Languages

Language:CSS 42.0%Language:Vue 35.3%Language:JavaScript 21.6%Language:HTML 1.2%