Import
About
Import, previously known as the CSS Import plugin (download still available at bottom of post), has been updated and renamed - it now supports JS as well as CSS (open to suggestions for other filetypes you'd normally add to the exported HTML, if any)
The Import plugin allows you to import files you've added to your project into the DOM at runtime (even with NW.js!) instead of having to edit the index.html each time you export.
Primarily it's just meant for testing things like CSS or JS modules without the need to export, but depending on your project you may be able to use it in your releases as well.
A tiny drawback for instance with importing at runtime is that it's not immediately loaded, so you might see styled elements switch from original look to styled for a few ms. if you load directly into a layout. This can be hidden with a loading layer, layout or setting initial visibility of styled elements to hidden, then unhiding them at start with events.
Usage
If you only need to import one file you can use the Auto-import field under the plugin properties.
There's no benefit of Auto-import vs events and you can combine both methods as well if you'd like. For example, import module.js via Auto-import and style.css at start with the Import file event. There's built-in protection from accidentally importing the same file several times but it may not be bullet proof so try to avoid it if possible :]
Import v1.1 Download - June 9th 2017
Plugin: mck_import.zip
CSS Import v1.0 Download - January 18th 2013
Plugin: css_import.zip
Example: css_import.capx
Screenshot: http://i.imgur.com/ZWVFy.png
Credits/Disclaimer
The plugin was basically Frankenstein'd from Pode's HTML Div plugin (because it contained CSS stuff) + code scavenged from the web. So credits to Pode and this site specifically for making this possible.
I have no real coding skills, this was mainly just for personal use and don't think I'd be able to make a plugin from scratch. So this means I can't guarantee it working flawlessly. I've only tested it in Chrome on Windows 7 and 10, so if it breaks down and blows up your computer, I warned you!
Enjoy!