Last active
May 2, 2022 13:20
-
-
Save yogain123/c4516979c00dae9b01bbdfd1ecb3ba2c to your computer and use it in GitHub Desktop.
npm+webpack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hola |
extra
vendor.js
WebPack bundles all the file and babel convert ES6 from that bundles files to old version which all browser can understand
local dependencies ==> okay
global dependencies ==> okay
but if you want to run global dependencies installed locally, then you need to write script and run, otherwise it won't work
example::
npm install json-server -g // now running json-server from anywhere will work properly
BUT
npm install json-server --save // now running json-server will not work in project folder . thats why put it in script
"scripts":{
"executeMe":"json-server"
}
then ==> npm run executeMe
check module info
npm info <module-name>
npm info lodash
more npm command
pnpm -> check it for monorepo
npm link
npm pack
npm ls <package-name>
--> print to stdout all the versions of a package that is installed, including their dependencies in a tree-structure
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Server Side Templating VS Single Page App