Only assign plugin-specific config when module being loaded is a plugin-based resource, not a plugin module itself.
Fix minor typo.
Build dist versions.
Extract the stringify functionality and the write-define functionality into modules and use them wherever possible.
Add a legacy cram plugin.