Plugin styling not applied when not installed via ACP

Solved Plugin Development
  • Hi all,

    I am developing a plugin and I could not get the styling to be applied. Then when I checked against already available plugins, seems styling doesn't work when installed using npm link or npm i <package>.

    If it's any help, the following is my directory structure of the plugin I am developing:

    └── nodebb-plugin-quickstart
       └── static
           └── style.scss
    

    The following is my plugin.json

    {
    ...
    	"scss": [
    		"static/style.scss"
    	],
    ...
    }
    

    Any help would be appreciated.
    Thank you!

  • yasasY yasas marked this topic as a question on
  • Scss is only supported on nodebb 3.x, in nodebb 2.x and previous versions you need to use less and use the less block in plugin.json.

  • Hi @baris

    I tried a less block and now it's all working well.

    Thanks a lot!

  • yasasY yasas has marked this topic as solved on

Suggested Topics