Referencing /node_modules with Laravel MixAugust 07, 2017
../../../node_modules/foo/bar/baz.xyz routine. Luckily, there’s a better way.
dropdown modules from Bootstrap simply prefixing the string with the package name
With Sass it’s a fairly similar process, except that you’ll prefix the string with a
~. This just tells Sass you’re kicking off the path from
node_modules. In this example I’m pulling in Bootstrap and Font Awesome.
@import '~font-awesome/scss/font-awesome'; @import '~bootstrap-sass/assets/stylesheets/bootstrap';
A blog about Laravel & Rails, written by Dwight Watson.