mix.styles([]) is not a function
See original GitHub issue- Laravel Mix Version: “^0.6.0”,
- Node Version (
node -v
): v.6.10.0 - NPM Version (
npm -v
): 4.1.1 - OS: Windows 7 32 bit
Description:
When I try to combine multiple css files into one files using this code it doesnt work :
let mix = require('laravel-mix');
mix.styles([ 'resources/assets/back/plugins/bootstrap/css/bootstrap.css', 'resources/assets/back/plugins/node-waves/waves.css', 'resources/assets/back/plugins/animate-css/animate.css', 'resources/assets/back/plugins/material-design-preloader/md-preloader.css' ], 'public/back/css/vendor.css');
Command prompt throws this error : mix.styles(…) is not a function
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
node.js - mix.options is not a function - Stack Overflow
In your code, you're using laravel-elixir package which has been upgraded and renamed to laravel-mix . So, install it using npm install ...
Read more >mix.stylus is not a function · Issue #475 - GitHub
Laravel Mix Version: 0.6.0 Node Version: 7.6.0 NPM Version: OS: OS X Description: When I create a new Laravel project (composer ...
Read more >L5.4 Styles Is Not A Function - Laracasts
I'm migrating a 5.3 app to 5.4. When running npm run dev, I get /home/michael/Code/oispark/webpack.mix.js:36 .styles([ ^ TypeError: mix.styles is not a ......
Read more >Laravel Mix - Laravel - The PHP Framework For Web Artisans
Laravel Mix, a package developed by Laracasts creator Jeffrey Way, provides a fluent API for defining webpack build steps for your Laravel application...
Read more >JavaScript | Laravel Mix Documentation
Laravel Mix also ships with basic Typescript support. Simply update your mix.js() call to mix.ts() , and then use the exact same set...
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
I think
mix.styles
has been deprecated. If your just combining the css together, try using mix.combine().Documentation should be updated then.