Sunday, May 21, 2017

css not being applied laravel

In Laravel 5.4, my resources/assets/sass/app.scss file looks like this:

// Fonts
@import url(https://fonts.googleapis.com/css?family=Raleway:300,400,600);

// Variables
@import "variables";

// Bootstrap
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

// I added this line
@import "test";

And I have a 'test.scss' file in the same folder. Everything compiles fine using 'npm run dev' and I can see my test.scss css at the bottom of my public/css/app.css file. However, when I inspect the element for which my test css applies, none of the css is there. Am I missing something really obvious here? Thanks for your time.



via Matt

Advertisement