プラグインのモバイルCSS設定方法

https://developer.cybozu.io/hc/ja/articles/203455680-kintone-%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E9%96%8B%E7%99%BA%E6%89%8B%E9%A0%86

こちらのページを参考にして、モバイルのCSSをプラグインに設定しようとしていますが、pluguin-packerを実行すると以下のようなエラーが表示されパッケージングに失敗します。


  • “.mobile[‘css’]” is an invalid additional property
    Failed: Invalid manifest.json

 

manifest.jsonの中には以下の通りです。

何か書き方に問題があるのでしょうか?


{

“manifest_version”: 1,

“version”: 1,

“type”: “APP”,

“desktop”: {

“js”: [

“js/desktop.js”

],

“css”: [

“css/desktop.css”

]

},

“mobile”: {

“js”: [

“js/mb_desktop.js”

],

“css”: [

“css/mb_desktop.css”

]

},

“icon”: “image/icon.png”,

“config”: {

“html”: “html/config.html”,

“js”: [

“js/config.js”

],

“css”: [

“css/config.css”

]

},

“name”: {

“en”: “sample plugin”,

“ja”: “サンプルプラグイン”

},

“description”: {

“en”: “sample plugin”,

“ja”: “サンプルプラグイン”

}

}


ご提示されている manifest.json を使ってこちらでは packできました。

何か別なところに原因があるのかもしれません。

試していただいてありがとうございます。

kintone-plugin-packerのバージョン最新化したら解決しました。