1.0.0 • Published 5 years ago

demon-vue v1.0.0

Weekly downloads
4
License
-
Repository
-
Last release
5 years ago

前端测试服务器

node

使用方法

npm install --save --registry=https://registry.npm.taobao.org
npm install webpack --save --registry=https://registry.npm.taobao.org
npm install webpack-cli --save --registry=https://registry.npm.taobao.org
npm install webpack-dev-server --save --registry=https://registry.npm.taobao.org
// 先打包公共依赖
npm run dll
// 开发模式
npm run dev
// 生产模式
npm run build
// 服务器
node server.js

文件架构

文件架构
  • build webpack构建文件(主要包含dll, copyWebpackPlugin, eslint, babel, less, HtmlWebpackPlugin, webpack-dev-server, hmr, CleanWebpackPlugin, webpack-merge, MiniCssExtractPlugin这些配置)
  • src 生产文件
    • assets 公共资源包
    • components 组件文件夹
    • router 路由
    • app.vue 全局组件
  • static 静态资源
  • .eslintrc.js eslint配置文件
  • babel.config.js babel配置文件
  • fav.ico ico
  • index.ejs webpack HtmlWebpackPlugin模板
  • LICENSE 产权说明
  • postcss.config.js postcss配置文件