• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Developing a brand new theme changes won't show up unless button Rebuild & Restart is being fired

Scheduled Pinned Locked Moved Technical Support
3 Posts 2 Posters 380 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • paladin884P Offline
    paladin884P Offline
    paladin884
    wrote on last edited by
    #1

    Hi,

    I've recently started using nodebb and I'm having issues understanding how the new theme development actually works.

    1. I've created a new theme out of quickstart theme and copied it over inside /node_modules/.
    2. Went inside the dashboard and set the theme to use my new theme
    3. Whenever I make any changes unless I go and press the button Build & Restart in the dashboard I won't get to see the changes even-though I use ./nodebb build tpl && ./nodebb dev in the terminal

    If I add some CSS or content changes I would like to be able to see the changes on page refresh if there's not such a thing of browser hot-reload.

    Repeating the point 3. I find it extremely slow in developing what I'm actually planning and I'm sure I'm missing something here and other people might have a better way in doing that.

    Please advice!

    Thanks a lot!
    Mihai Diaconita

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #2

    We recommend you use grunt which will rebuild only the assets that changed and restart automatically.

    https://community.nodebb.org/post/82007

    You can also use your browser developer tools to apply new CSS styles or modify existing ones, though you'll still need to persist those changes into code manually.

    1 Reply Last reply
    0
  • paladin884P Offline
    paladin884P Offline
    paladin884
    wrote on last edited by
    #3

    Yes! That's it, didn't realised grunt was setup in a way to pick-up custom themes. It's working like a charm!

    Thanks a lot @PitaJ !

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development