huxz d57437ed42 优化代码 7 年之前
..
config 5e9f2a73c9 使用Gradle打包Vue项目到后台项目 8 年之前
src d57437ed42 优化代码 7 年之前
static 5e9f2a73c9 使用Gradle打包Vue项目到后台项目 8 年之前
test ed1a03efde 创建管理后台web项目 8 年之前
webpack 0ae9aae6ac 替换 sun.* 包为 java api 8 年之前
.babelrc ed1a03efde 创建管理后台web项目 8 年之前
.editorconfig ed1a03efde 创建管理后台web项目 8 年之前
.eslintignore ed1a03efde 创建管理后台web项目 8 年之前
.eslintrc.js ed1a03efde 创建管理后台web项目 8 年之前
.gitignore ed1a03efde 创建管理后台web项目 8 年之前
.postcssrc.js ed1a03efde 创建管理后台web项目 8 年之前
README.md 5e9f2a73c9 使用Gradle打包Vue项目到后台项目 8 年之前
build.gradle 5e9f2a73c9 使用Gradle打包Vue项目到后台项目 8 年之前
index.html 6293b25f40 页面导航栏组件化 8 年之前
package.json 0ae9aae6ac 替换 sun.* 包为 java api 8 年之前
yarn.lock db33c61d49 后台应用管理页面应用操作接口实现 8 年之前

README.md

sso-manage-console-web

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

If npm run dev failed, please downgrade webpack-dev-server:

# Remove webpack-dev-server, webpack-dev-server@2.9.10 is issue.
yarn remove webpack-dev-server

# Add webpack-dev-server@2.9.1
yarn add webpack-dev-server@2.9.1 --dev

# serve with hot reload at localhost:8080
yarn run dev

Bootstrap sample http server, after run yarn run build. Test whether building success.

# build project
yarn run build

# using python3 for testing
python -m http.server

Deploy

Build vue project, and copy outputs to Java Backend

gradle :sso-manage-console-web:npmRunBuild

# Package spring boot application
gradle build

For a detailed explanation on how things work, check out the guide and docs for vue-loader.