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 CLI 3.0.3创建并配置一个包含Babel、Router及Stylus预处理器的Vue项目,并指导安装Framework7及其Vue插件,实现移动端Web应用的快速开发。
1万+

被折叠的 条评论
为什么被折叠?



