Can you add a CSS file to an extension

designpeg

  • *
  • Posts: 711
I'm building an extension -works in  html only, and I want to include a stylesheet.
I've worked out how to include my .js file by putting it in a file named dependencies, and putting the path in the include.nmml file. I was hoping I could do something similar with a css file? Anyone know if this is possible?

SadiQ

  • Posts: 1788
Can't you change things from your .js file?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

designpeg

  • *
  • Posts: 711
Hi, I've already got a work around, I can change styles from my js file, or I can manually add a css file to the template in plaf/templates/html but I was keen to have everything self contained in the extension.

rob1221

  • *
  • Posts: 9456
You can use the template tag which will replace the default template with the one in the extension.
<template path="templates" />