1 Star 0 Fork 0

草梅友仁 / simple-vue-webpack

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

simple-vue-webpack

一个简单的基于vue框架的webpack风格项目模板


声明:草梅友仁版权所有,盗用必究!

作者:草梅友仁

使用方法

npm i #下载依赖
npm run dev  #开发模式
npm run build  #生产模式,生成的文件在dist目录下
npm run server  #启用http服务器,可通过http://127.0.0.1:80 来访问
npm run lint:fix   #使用eslint修正风格
npm run uninstall  #移除所有node_modules

文件夹说明

  • dist 编译后的内容,要发布的内容,将本部分扔到服务器根目录即可
  • server 本地调试用的服务器脚本,提供http服务,将dist文件夹作为一个网站根文件夹
  • src 具体源代码
  • webpack webpack的相关配置
    • webpack.base.conf.js webpack通用配置
    • webpack.dev.conf.js webpack开发用配置
    • webpack.prod.conf.js webpack打包用配置

根目录文件说明

  • .babelrc babel配置,用于转换es6及以上语法
  • .editorconfig 编辑器配置,用于统一缩进和换行符,需要在对于编辑器中安装editorconfig的相关插件,例如在vscode中就是EditorConfig for VS Code。相关包已在package.json中,安装完依赖后就行
  • .eslintignore 配置不进行eslint风格检查的文件/文件夹
  • .eslintrc.js eslint风格配置,用于统一代码风格
  • .gitignore 配置git不提交的内容
  • package.json npm依赖包
  • README.md 本文件,项目介绍文件
Copyright (C) <year> <copyright holders> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 被授权人权利 被授权人有权利使用、复制、修改、合并、出版发行、散布、再授权及贩售软件及软件的副本。 被授权人可根据程序的需要修改授权条款为适当的内容。 被授权人义务 在软件和软件的所有副本中都必须包含版权声明和许可声明。

简介

简单的基于webpack的vue项目模板 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/caomeiyouren/simple-vue-webpack.git
git@gitee.com:caomeiyouren/simple-vue-webpack.git
caomeiyouren
simple-vue-webpack
simple-vue-webpack
master

搜索帮助