Are there issues if you try the second way in documentation:
Or, you may execute postCss with no additional plugins in order to achieve simple CSS compilation and minification:
mix.postCss('resources/css/app.css', 'public/css');
I have been digging around on the internet and so far have not found a solution. Some posts suggest there has been an upgrade to Mix. It only affects my css. My JS compiles fine. Anyone seen this before?
The require('postcss-custom-properties') was recommended on an SO post, and it appeared to work for some, but not me.
https://stackoverflow.com/questions/65935326/assertionerror-err-assertion-mix-postcss-is-missing-required-parameter-1-src
Furthermore, PHPStorm gives an advice on the first line of my css:
Argument type string[] is not assignable to parameter type string
mix.js(['resources/js/app.js',
'resources/js/categories.js',
'resources/js/create_workorder.js',
'resources/js/functions.js',
'resources/js/hashtable.js',
'resources/js/invoice_additions.js',
'resources/js/jquery.numberformatter.min.js',
'resources/js/jquery.tablesorter.min.js',
'resources/js/orders.js',
'resources/js/products.js',
'resources/js/project_quotes.js',
'resources/js/quotations.js',
'resources/js/tabs.js',
'resources/js/validation.js',
'resources/js/warehouse.js',],
'public/js/app.js')
mix.postCss(['resources/css/app.css', //PHPStorm advice here
'resources/css/app_override.css',
'resources/css/bootstrap-theme.css',
'resources/css/bootstrap_override.css',
'resources/css/default.css',
'resources/css/help.css',
'resources/css/jqueryui.css',
'resources/css/mobile.css',
'resources/css/favicon.png'],
'public/css',[
require('postcss-custom-properties')
])
.sourceMaps();
Please or to participate in this conversation.