deployment - Are huge node_modules and bower_components directories necessary on production? -
i'm deploying remote server local development environment (vagrant
/ homestead
). in project have huge directories both node_modules
, bower_components
. want use rsync
deploy project on remote server think it's ok skip mentioned giants. why?
by writing question confirm 2 things:
1) since triggered gulp tasks on local, right not copy 2 vendor directories if assets copied, minified , versioned using laravel elixir? compiled styles , scripts synced.
(that's non-laravel project) use elixir in gulpfile.js
it's simplicity
2) or should deployment process include installing assets (like npm install
) on remote server , running tasks? think it's wrong in case. if example won't able install , run npm
on remote?
so in nutshell. can consider node_modules
, bower_components
essential resources during development , redundant once deployed?
yes right in once javascript app has been transpiled, dependencies(node_modules, bower_componenets, etc) have been removed gulp script , packaged single bundle.
Comments
Post a Comment