I am working on Laravel application and trying to access jQuery via nodemodules
Here is my app.js file:
var $ = require('../../../node_modules/jquery/dist/jquery')
//require('../../../node_modules/bootstrap-sass/assets/javascripts/bootstrap.min')
require('./site')
The resulting file it generates is given here
npmto install jquery? Have you triedvar $ = require('jquery')?npm. I am usingbrowsifyto userequirein my fileelixirfor interaction with these files - laravel.com/docs/5.2/elixir#browserify - seems Laravel has its ownAPIfor helping to deal with this stuff.require('jquery')without the absolute file path