Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
650c716d
Commit
650c716d
authored
Jan 03, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: doc update
parent
f4476b75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
README.md
README.md
+2
-1
webpack-bundle-analyzer.md
docs/webpack-bundle-analyzer.md
+41
-0
No files found.
README.md
View file @
650c716d
...
...
@@ -123,7 +123,8 @@ yarn run lint
-
[
Table 重封装组件
](
https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/table/README.md
)
-
[
ANTD 默认配置项
](
https://github.com/sendya/ant-design-pro-vue/blob/master/src/defaultSettings.js
)
-
[
按需加载/减少打包大小
](
https://github.com/sendya/ant-design-pro-vue/blob/master/docs/LoadOnDemand.md
)
-
[
为首屏增加 Loading 动画
](
https://github.com/sendya/ant-design-pro-vue/blob/master/docs/Add-Page-Loading-Animate.md
)
-
[
为首屏增加 Loading 动画
](
https://github.com/sendya/ant-design-pro-vue/blob/master/docs/Add-Page-Loading-Animate.md
)
-
[
为项目增加依赖项分析工具 analyzer
](
https://github.com/sendya/ant-design-pro-vue/blob/master/docs/webpack-bundle-analyzer.md
)
-
ANTD PRO 额外组件
-
Trend 趋势标记
[
Trend.md
](
https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/Trend/index.md
)
-
AvatarList 用户头像列表
[
AvatarList.md
](
https://github.com/sendya/ant-design-pro-vue/blob/master/src/components/AvatarList/index.md
)
...
...
docs/webpack-bundle-analyzer.md
0 → 100644
View file @
650c716d
先增加依赖
```
bash
// npm
$
npm install
--save-dev
webpack-bundle-analyzer
// or yarn
$
yarn add webpack-bundle-analyzer
-D
```
配置文件
`vue.config.js`
增加
`configureWebpack.plugins`
参数
```
const path = require('path')
const webpack = require('webpack')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
function resolve (dir) {
return path.join(__dirname, dir)
}
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
// Ignore all locale files of moment.js
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
// 依赖大小分析工具
new BundleAnalyzerPlugin(),
]
},
...
}
```
启动
`cli`
的
`build`
命令进行项目编译,编译完成时,会自动运行一个 http://localhost:8888 的地址,完整显示了支持库依赖
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment