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
Post a Comment