I have no idea regarding how to make magento use .scss
instead of .less
for all styling purpose.
So I went through official documentation available at
https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/css-topics/gulp-sass.html
https://devdocs.magento.com/guides/v2.2/frontend-dev-guide/css-topics/custom_preprocess.html
and installed module-scss from it's github repo.
https://github.com/magento/magento2-samples/tree/master/module-sample-scss
and put it inside below directory and then run upgrade command.
app\code\Magento\SampleScss
I have created newtheme from scratch for demonstration purpose of compilation of .scss
.My theme directory structure looks like below.
app\design\frontend\Magento\newtheme
and inside newtheme newstyle.scss is inside web/css
subdirectory thus trying to convert into newtheme.css and also add the file to default_head_blocks.xml
.
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/newstyle.css"/>
</head>
</page>
But when I ran deploy command, above error message appears in cli. I am not backend dev so don't know from where issue comes from.