blog icon indicating copy to clipboard operation
blog copied to clipboard

Vue2.x+webpack3脚手架 包含SSR

Open luckyyyyy opened this issue 8 years ago • 0 comments

为了方便自己 抽空做了2个比较简单的脚手架

vue-template-ssr

SSR不用NUXT的原因是我还需要学习NUXT那一套,目前没这个必要,自己做了一个。

vue-mobile-boilerplate

This repo is a boilerplate for vue-mobile project. You could use it as a base to build your own web app.

Features

  • Equip with Vue, ES6 & Babel 6.
  • Lint with ESlint and Airbnb's style sheet.
  • Build with Webpack 2 (support Webpack 2 & Webpack 3).
  • Support hot module replacement
  • Auto Open a new browser tab when Webpack loads, and reload the page when you modified the code.
  • Support auto px2rem (Default off).
  • Support Postcss

How to use

First, clone the repo.


git clone https://github.com/luckyyyyy/vue-example.git <yourAppName>
cd <yourAppName>

# Second, delete the old .git history and initialize new history.
rm -rf .git
git init

# If you are in China, please modify the npm registry
npm config set registry https://registry.npm.taobao.org

# Third, install the dependencies.
npm install

# Then, launch the boilerplate app.
npm run dev

luckyyyyy avatar Aug 22 '17 05:08 luckyyyyy