ElemeFE / ElemeFE/page-skeleton-webpack-plugin

API schema 匹配不上

Open
#91 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
388
PR merge metrics
No merged PRs in 30d

Description

### Description

预览页面需要登录态(sessionStorage)

### Steps to reproduce

1、配置webpack-config.js
2、SkeletonPlugin添加sessionStoragies
3、npm run dev

**Actual behavior:** [What actually happened]
报错! page-skeleton-webpack-plugin has been initialised using a configuration object that does not match the API schema

### Plugin configration

for example:

```javascript
new SkeletonPlugin({
pathname: path.resolve(__dirname, `./src`),
port: '7890',
loading: 'spin',
svg: {
color: '#EFEFEF',
shape: 'circle',
shapeOpposite: ['.red']
},
image: {
shape: 'rect', // `rect` | `circle`
color: '#EFEFEF',
shapeOpposite: ['.white']
},
pseudo: {
color: '#EFEFEF', // or transparent
shape: 'circle', // circle | rect
shapeOpposite: ['.apple', '.pen']
},
button: {
color: '#EFEFEF',
excludes: ['.center a']
},
defer: 5000,
excludes: [],
remove: [],
hide: ['.ag-text', '.ag-image'],
grayBlock: ['#header'],
cssUnit: 'vw',
cookies: [{
name: 'SID',
value: 'xxxxxx',
url: 'https://xx.xxx.xx'
}, {
name: 'USERID',
value: 'xxxxxx',
url: 'https://xx.xxx.xx'
}],
sessionStoragies: {
a: 1
}
})
```

### Versions

- Page Skeleton:
- Webpack:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.