If you have a client folder for client files, it will work to add it there. I just added it to the config.js file, which I added to the Client folder, and it works fine.
client / config.js
Accounts.ui.config({ passwordSignupFields: 'USERNAME_AND_OPTIONAL_EMAIL' });
source share