JackJones's avatar

Learning Laravel Mix and have a few questions

Hi All,

I'm learning Mix (taking a break from PHP tbh!), and after a few hours of watching Jeffrey I have a few unanswered questions, I'm only trying to do some basic stuff

Mix allows me to concatonate files etc. and I'm not really after much more than that. I'll number my questions to make replying easier, and you don't even need to reply to all the questions to help me =)

  1. I install Bootstrap 4, and it installs to "node_modules/bootstrap", I can use "@import 'node_modules/bootstrap/scss/bootstrap.scss';" to import it, but then the docs say to modify "_custom.scss" to override any variables. Now obviously I don't do this in "node_modules", so how do I import only that file, and tell the .scss file to override the bootstrap file?

  2. I'm successfully importing the bootstrap (and any other JS) using:

.js('node_modules/bootstrap/dist/js/bootstrap.min.js', 'public/js/bs.js');

But above the files it is including a load of "webpack" stuff. Is this just something I have to live with?

  1. When I run "npm run dev", it automatically adds backward-browser-compatibility (PostCSS?) to my CSS tags. I like this, but how would I disable it, or add new ones?

I've searched through webpack.config.js but cannot find it, but I imagine it's in there somewhere?

Thanks for any help in advance

Lee

0 likes
0 replies

Please or to participate in this conversation.