Created
January 31, 2020 17:00
-
-
Save moradi-morteza/a793b6c0928f3abce57a6df6bf30a982 to your computer and use it in GitHub Desktop.
[npm]
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
// you install js package with npm this command install one version of library to folder node_modules | |
// then type : npm run dev : this command check file resurse/sass/app.sass and get all require name library and add all js code to file publie/js/app.js | |
// now you can use lib to your project | |
// for example when you install and then add @import '~bootstrap/scss/bootstrap'; it added to your project | |
//***** if you look at file package.json in bootstrap folder in node/moudols you can see (jquery) this mean that jquery is installed in your project with bootstrap - if you want to use it you should add <scrip src:"{{asset('js/app.js')}}"></script> | |
// in file welcome.blade.php app.js not added but in file layout/app.blade.php it is. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment