javascript - Is it possible to define different locations in your NPM package for browser and for server (NodeJS)? -


is possible define different locations in npm package browser , server (nodejs)?

my code largely isomorphic, uglified , concatenated browsers.

short answer, can't such thing. dependencies stored under /node_modules folder.

you may override option running patches or installer script. here bug raised on github issue.it's described in official npm blogpost

but don't feel disappointed, may use bower dependency injector client side code. prefer feels more semantically , separated: bower front end, npm end.

moreover, npm packages built commonjs only, bower packages instead more plug , play solutions


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -