Can't use only SASS
See original GitHub issueFor example, if I want to use only sass
mix it will fail:
mix.sass('resources/assets/sass/app.scss', 'public/css/app.css')
Error:
./node_modules/laravel-mix/src/Mix.js:70
let entry = this.js.reduce((result, paths) => {
^
TypeError: Cannot read property 'reduce' of undefined
If js
mix is included , when everything is OK:
mix.js('resources/assets/js/app.js', 'public/js/test.js')
.sass('resources/assets/sass/app.scss', 'public/css/app.css')
It looks like you must always include js
mix
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Sass: @use
Members (variables, functions, and mixins) loaded with @use are only visible in the stylesheet that loads them. Other stylesheets will need to write...
Read more >I can't use @use in sass file in Create React App + node-sass ...
I want to use this variable in my src/components/LandingPage/LandingPage.module.scss file. Inside this file, I have: @use "../../styles/ ...
Read more >Can't use only SASS · Issue #39 · laravel-mix/laravel-mix
For example, if I want to use only sass mix it will fail: mix.sass('resources/assets/sass/app.scss', 'public/css/app.css') Error: .
Read more >How to Use Sass with CSS - freeCodeCamp
If you come back soon to continue working, all you have to do is open the file which has the extension .scss. Then...
Read more >Stop using @import with Sass | @use and @forward explained
Your browser can't play this video. Learn more. Switch camera.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Update: I’ve pushed a new version that will allow you to do
mix.sass()
without ever callingmix.js()
. It’ll just create the entry for you.Yeah we might want a better error or documentation about it. Have been getting messages on Twitter about this.