I am trying to add package css file into my app.scss but it doesn't work,
Code
app.scss
@import '~tjdbs4/tjdb4.css';
webpack.mix.js
let mix = require('laravel-mix');
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
when I run npm run watch it works successfully but the style doesn't add to app.css
any idea?
Update
this is my complete app.scss file
// Fonts
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");
// Variables
@import "variables";
// Bootstrap
@import '~bootstrap/scss/bootstrap';
@import '~bootstrap-vue/dist/bootstrap-vue.css';
@import '~@fortawesome/fontawesome-free/scss/brands';
@import '~@fortawesome/fontawesome-free/scss/regular';
@import '~@fortawesome/fontawesome-free/scss/solid';
@import '~@fortawesome/fontawesome-free/scss/fontawesome';
@import '~tjdbs4/tjdb4';
.navbar-laravel {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
when I use @import '~tjdbs4/tjdb4'; and run npm run watch command I get:
ERROR Failed to compile with 2 errors 22:53:58
error in ./resources/assets/sass/app.scss
Module build failed: ModuleNotFoundError: Module not found: Error: Can't resolve '../webfonts/fa-brands-400.eot' in
but if i use @import '~tjdbs4/tjdb4.css'; and run npm run watch it doesn't show any error and also will not mix my css file with the rest of them.
~will getnode_modulesfolder// Bootstrap @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";. It's work for me.