Solved Plugin styling not applied when not installed via ACP


  • 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!

  • Topic has been marked as a question   Yasas WijetilakeY   Yasas Wijetilake 
  • NodeBB Admin

    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!

  • Topic has been marked as solved   Yasas WijetilakeY   Yasas Wijetilake 

Suggested Topics

| | | |