Skip to content

Commit 64e390b

Browse files
committed
chore: add vue/cli usage
1 parent ac43da2 commit 64e390b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,28 @@ module.exports = {
4949

5050
### vue/cli
5151

52-
TODO
52+
Recommended to use it in `vue.config.js`:
53+
54+
> Because vue/cli exposed plugin api is not as much as poi.
55+
56+
```js
57+
const LoadingScreenPlugin = require('loading-screen')
58+
59+
module.exports = {
60+
chainWebpack(config) {
61+
config.plugin('loading-screen').use(LoadingScreenPlugin, [
62+
{
63+
logo: 'https://vuejs.org/images/logo.png', // vue logo
64+
theme: {
65+
client: '#4fc08d' // vue color
66+
},
67+
port: 8080,
68+
callback() {}
69+
}
70+
])
71+
}
72+
}
73+
```
5374

5475
## API
5576

0 commit comments

Comments
 (0)