Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未找到Magento子主题样式-m.less等_Magento_Less - Fatal编程技术网

未找到Magento子主题样式-m.less等

未找到Magento子主题样式-m.less等,magento,less,Magento,Less,我正在学习Magento 2,并基于Blank创建一个儿童主题。在我的web/css文件夹中,我只有source/_extend.less和source/lib/variables/_colors.less 从我的理解来看,它应该是从父主题中提取所有其他内容。但是它说没有找到/MyTheme/en_-US/css/styles-m.css和/MyTheme/en_-US/css/styles-l.css。这怎么可能?我做错了什么 除了_extend.less之外,我还有一个_theme.less

我正在学习Magento 2,并基于Blank创建一个儿童主题。在我的web/css文件夹中,我只有source/_extend.less和source/lib/variables/_colors.less

从我的理解来看,它应该是从父主题中提取所有其他内容。但是它说没有找到/MyTheme/en_-US/css/styles-m.css和/MyTheme/en_-US/css/styles-l.css。这怎么可能?我做错了什么

除了_extend.less之外,我还有一个_theme.less,但当我意识到我误解了它的用法后,我删除了它


我已经清除了缓存并从pub/static/frontend和var/view\u预处理中删除了文件

尝试执行静态部署以修复此问题。在magento站点根目录上的外壳/终端上执行此操作

php ./bin/magento setup:static-content:deploy --theme <Use the theme name you created example myTheme/default>
php./bin/magento设置:静态内容:部署--主题
注意这个过程可能需要很长时间


完成此过程后,您将重新加载站点

尝试执行静态部署以修复该问题。在magento站点根目录上的外壳/终端上执行此操作

php ./bin/magento setup:static-content:deploy --theme <Use the theme name you created example myTheme/default>
php./bin/magento设置:静态内容:部署--主题
注意这个过程可能需要很长时间


完成此过程后,您将重新加载站点

在将vendor/magento/theme frontend blank/web dir复制到我的自定义主题工作正常后,希望有人会得到帮助在将vendor/magento/theme frontend blank/web dir复制到我的自定义主题工作正常后,希望有人会得到帮助