page-skeleton-webpack-plugin
page-skeleton-webpack-plugin copied to clipboard
请问vue-cli3如何配置按照方案,不好使?
Description
- Building for production... ERROR PageSkeletonOptionsValidationError: Invalid configuration object. page-skeleton-webpack-plugin has been initialised using a configuration object that does not match the API schema.
- configuration has an unknown property 'storagies'. These properties are valid: object { pathname?, staticDir?, routes?, port?, loading?, text?, image?, button?, svg?, pseudo?, device?, debug?, minify?, defer?, excludes?, remove?, hide?, grayBlock?, cookies?, headless?, cssUnit?, decimal?, logLevel?, logTime?, noInfo?, quiet? } PageSkeletonOptionsValidationError: Invalid configuration object. page-skeleton-webpack-plugin has been initialised using a configuration object that does not match the API schema.
Plugin configration
for example:
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'
}]
})
Versions
- Page Skeleton:
- Webpack:
你好,请问解决了吗 🤐
还没有解决
没有解决呢 你呢
------------------ 原始邮件 ------------------ 发件人: "lxp"[email protected]; 发送时间: 2019年5月1日(星期三) 中午12:29 收件人: "ElemeFE/page-skeleton-webpack-plugin"[email protected]; 抄送: "Arthur☞"[email protected]; "Author"[email protected]; 主题: Re: [ElemeFE/page-skeleton-webpack-plugin] 请问vue-cli3如何配置按照方案,不好使? (#95)
你好,请问解决了吗 🤐
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
注释掉webpack 里面 storagies 属性
求助demo
请问有demo吗 我配置以后不生效
------------------ 原始邮件 ------------------ 发件人: "Ahmonster"[email protected]; 发送时间: 2019年5月21日(星期二) 下午5:41 收件人: "ElemeFE/page-skeleton-webpack-plugin"[email protected]; 抄送: "Arthur☞"[email protected];"Author"[email protected]; 主题: Re: [ElemeFE/page-skeleton-webpack-plugin] 请问vue-cli3如何配置按照方案,不好使? (#95)
注释掉webpack 里面 storagies 属性
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
你加我微信,18607223012,我给你demo
我的老是提示这个: Error: listen EADDRINUSE: address already in use :::7890
改成其他端口同样。有遇到过的大胸弟吗?
我的老是提示这个:
Error: listen EADDRINUSE: address already in use :::7890
改成其他端口同样。有遇到过的大胸弟吗? @gongph 解决了吗?
我的老是提示这个:
Error: listen EADDRINUSE: address already in use :::7890
改成其他端口同样。有遇到过的大胸弟吗? @gongph 解决了吗?
解决了,看这里: https://github.com/ElemeFE/page-skeleton-webpack-plugin/pull/101