vue+framework7

vue+framework7


vue/cli3搭建vue项目:

# 安装vue/cli3
npm install -g @vue/cli
# 查看vue版本
vue -version
# 创建一个vue项目,f7-vue为项目名
vue create f7-vue
# 运行
npm run serve

由于Eslint比较烦人,不安装Eslint依赖。

步骤
  • Manually select features
  • Babel、Router、CSS Pre-processors(空格键选择/取消)
  • 使用CSS预处理语言Stylus
Vue CLI v3.0.3
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, CSS Pre-processors
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Stylus
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In package.json
? Save this as a preset for future projects? (y/N) y
安装framework7
# 安装framework7
npm install framework7
# 安装framework7-vue插件
npm install framework7-vue

你可能感兴趣的:(vue)