page-skeleton-webpack-plugin icon indicating copy to clipboard operation
page-skeleton-webpack-plugin copied to clipboard

请问vue-cli3如何配置按照方案,不好使?

Open leishihong opened this issue 5 years ago • 10 comments

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:

leishihong avatar Apr 11 '19 02:04 leishihong

你好,请问解决了吗 🤐

mynameisjohnahahah avatar May 01 '19 04:05 mynameisjohnahahah

还没有解决

leishihong avatar May 02 '19 08:05 leishihong

没有解决呢 你呢

------------------ 原始邮件 ------------------ 发件人: "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.

leishihong avatar May 02 '19 08:05 leishihong

注释掉webpack 里面 storagies 属性

chanzea avatar May 21 '19 09:05 chanzea

求助demo

leishihong avatar May 24 '19 01:05 leishihong

请问有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.

leishihong avatar May 24 '19 01:05 leishihong

你加我微信,18607223012,我给你demo

hooir-dev avatar May 24 '19 01:05 hooir-dev

我的老是提示这个: Error: listen EADDRINUSE: address already in use :::7890 改成其他端口同样。有遇到过的大胸弟吗?

gongph avatar Jul 17 '19 02:07 gongph

我的老是提示这个: Error: listen EADDRINUSE: address already in use :::7890 改成其他端口同样。有遇到过的大胸弟吗? @gongph 解决了吗?

canfoo avatar Jul 31 '19 08:07 canfoo

我的老是提示这个: Error: listen EADDRINUSE: address already in use :::7890 改成其他端口同样。有遇到过的大胸弟吗? @gongph 解决了吗?

解决了,看这里: https://github.com/ElemeFE/page-skeleton-webpack-plugin/pull/101

gongph avatar Jul 31 '19 08:07 gongph