Skip to content

Commit

Permalink
精简package
Browse files Browse the repository at this point in the history
  • Loading branch information
初志鑫 committed Apr 27, 2020
1 parent 57b8acf commit 0ee2ba7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 55 deletions.
7 changes: 3 additions & 4 deletions README - DCloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</a>
</p>

## [演示地址,点这里!!!直接点击登录即可!](http://chu1204505056.gitee.io/vue-admin-beautiful)
## ![avatar](https://chu1204505056.gitee.io/vue-admin-beautiful/static/img/user.1667c1c2.gif)[演示地址,点这里!!!直接点击登录即可!](http://chu1204505056.gitee.io/vue-admin-beautiful)

## 官方问题解答讨论群 972435319

Expand All @@ -39,7 +39,6 @@ npm run serve

Modern browsers and Internet Explorer 11+.

<!-- prettier-ignore -->
| [<img class="no-margin" src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img class="no-margin" src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img class="no-margin" src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img class="no-margin" src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
| --------- | --------- | --------- | --------- |
| IE11, Edge| last 2 versions| last 2 versions| last 2 versions
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| IE11, Edge | last 2 versions | last 2 versions | last 2 versions |
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ git add -A
git commit -m 'deploy'
git push -f "https://${access_token}@gitee.com/chu1204505056/vue-admin-beautiful.git" master:gh-pages
start "https://gitee.com/chu1204505056/vue-admin-beautiful/pages"
git push -f "https://${access_token}@github.com/chuzhixin/vue-admin-beautiful.git" master:gh-pages
cd -
cd -
rimraf dist
Expand Down
22 changes: 11 additions & 11 deletions http/mock.http
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
Content-Type: application/x-www-form-urlencoded
###

###/face/list###POST http://localhost:80/mock-server/face/list
Content-Type: application/x-www-form-urlencoded
###

###/remixicon/getList###POST http://localhost:80/mock-server/remixicon/getList
###/colorfulIcon/list###POST http://localhost:80/mock-server/colorfulIcon/list
Content-Type: application/x-www-form-urlencoded
###

Expand All @@ -19,31 +15,31 @@ Content-Type: application/x-www-form-urlencoded
Content-Type: application/x-www-form-urlencoded
###

###/colorfulIcon/list###POST http://localhost:80/mock-server/colorfulIcon/list
###/face/list###POST http://localhost:80/mock-server/face/list
Content-Type: application/x-www-form-urlencoded
###

###/table/list###POST http://localhost:80/mock-server/table/list
Content-Type: application/x-www-form-urlencoded
###

###/upload###POST http://localhost:80/mock-server/upload
###/remixicon/getList###POST http://localhost:80/mock-server/remixicon/getList
Content-Type: application/x-www-form-urlencoded
###

###/tree/list###POST http://localhost:80/mock-server/tree/list
###/publicKey###POST http://localhost:80/mock-server/publicKey
Content-Type: application/x-www-form-urlencoded
###

###/login###POST http://localhost:80/mock-server/login
###/tree/list###POST http://localhost:80/mock-server/tree/list
Content-Type: application/x-www-form-urlencoded
###

###/publicKey###POST http://localhost:80/mock-server/publicKey
###/upload###POST http://localhost:80/mock-server/upload
Content-Type: application/x-www-form-urlencoded
###

###/user/info###POST http://localhost:80/mock-server/user/info
###/login###POST http://localhost:80/mock-server/login
Content-Type: application/x-www-form-urlencoded
###

Expand All @@ -54,3 +50,7 @@ Content-Type: application/x-www-form-urlencoded
###/logout###POST http://localhost:80/mock-server/logout
Content-Type: application/x-www-form-urlencoded
###

###/user/info###POST http://localhost:80/mock-server/user/info
Content-Type: application/x-www-form-urlencoded
###
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"babel-eslint": "^10.1.0",
"chalk": "^4.0.0",
"chokidar": "^3.4.0",
"compression-webpack-plugin": "^3.1.0",
"connect": "^3.7.0",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.3",
Expand All @@ -89,7 +88,6 @@
"filemanager-webpack-plugin": "^2.0.5",
"html-webpack-plugin": "^4.2.0",
"husky": "^4.2.5",
"image-webpack-loader": "^6.0.0",
"lint-staged": "^10.1.7",
"mockjs": "^1.1.0",
"plop": "^2.6.0",
Expand Down
1 change: 1 addition & 0 deletions src/layouts/components/TagsView/ScrollPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ export default {
position: relative;
overflow: hidden;
width: 100%;
min-height: 44px;
}
</style>
43 changes: 5 additions & 38 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,7 @@
const path = require("path");
const { title, abbreviation, devPort } = require("./src/config/settings");
const pkg = require("./package.json");
const webpack = require("webpack");
const CompressionWebpackPlugin = require("compression-webpack-plugin");
/*const productionGzipExtensions = [
"js",
"css",
"sass",
"svg",
"png",
"jpg",
"jpeg",
"ico",
"bmp",
"vue",
];*/
const Webpack = require("webpack");
const WebpackBar = require("webpackbar");
const FileManagerPlugin = require("filemanager-webpack-plugin");

Expand Down Expand Up @@ -71,7 +58,7 @@ module.exports = {
},
},
plugins: [
new webpack.ProvidePlugin({
new Webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"windows.jQuery": "jquery",
Expand All @@ -80,7 +67,7 @@ module.exports = {
maptalks: "maptalks",
"window.maptalks": "maptalks",
}),
new webpack.DefinePlugin({
new Webpack.DefinePlugin({
"process.env.VUE_APP_UPDATE_TIME": time,
}),
new WebpackBar({
Expand Down Expand Up @@ -132,7 +119,7 @@ module.exports = {
config
.plugin("ScriptExtHtmlWebpackPlugin")
.after("html")
.use("script-ext-html-webpack-plugin", [{ inline: /runtime\..*\.js$/ }])
.use("script-ext-html-Webpack-plugin", [{ inline: /runtime\..*\.js$/ }])
.end();
config.optimization.splitChunks({
chunks: "all",
Expand All @@ -158,29 +145,9 @@ module.exports = {
},
});
config.optimization.runtimeChunk("single");
config.module
.rule("images")
.use("image-webpack-loader")
.loader("image-webpack-loader")
.options({ bypassOnDebug: true })
.end();
/* config
.plugin("compression")
.use(CompressionWebpackPlugin, [
{
filename: "[path].gz[query]",
algorithm: "gzip",
test: new RegExp(
"\\.(" + productionGzipExtensions.join("|") + ")$"
),
threshold: 8192,
minRatio: 0.8,
},
])
.end();*/
config
.plugin("banner")
.use(webpack.BannerPlugin, [
.use(Webpack.BannerPlugin, [
`\u0062\u0079\u0075\u0069\u524d\u7aef\u654f\u6377\u5f00\u53d1\u5e73\u53f0 : ${pkg.name}\n copyright:\u0031\u0032\u0030\u0034\u0035\u0030\u0035\u0030\u0035\u0036\u0040\u0071\u0071\u002e\u0063\u006f\u006d \n author: ${pkg.author} \n participants: ${pkg.participants}\n time: ${time}`,
])
.end();
Expand Down

0 comments on commit 0ee2ba7

Please sign in to comment.