Automattic / _s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
http://underscores.me/
GNU General Public License v2.0
10.93k stars 3.12k forks source link

Can I remove the node_modules when I am ready for deployment? #1482

Open LukeVibes opened 3 years ago

LukeVibes commented 3 years ago

Are the node_modules need for live sites or are most of the modules for development purposes? The folder is more than 100MB and it causes errors when using All-In-One Migration and Duplicator.

Slvstar commented 3 years ago

On your terminal, write "npm run bundle" which generates a .zip archive for distribution, excluding development and system files.

LukeVibes commented 3 years ago

Thanks :)

LukeVibes commented 3 years ago

@Slvstar - not sure if you would know how this happened but- when I pushed the website to my Flywheel host from Local by Flywheel- the node_modules folder was automatically not added. Super happy about the result by I am curious how this happened. Any idea?

mattneal-stafflink commented 3 years ago

@LukeVibes I believe this is the default function of Local by Flywheel.