Yarn - 没有为 main.scss 提供配置

问题描述

我是 sage 的新手,我正在本地机器上处理现有项目。当我运行 yarn buildyarn build:production 时,我收到此错误

yarn run v1.22.10
$ webpack --env.production --progress --config resources/assets/build/webpack.config.js

Error: No configuration provided for /Volumes/kawase/wordpress_dev/Local/chao/app/public/wp-content/themes/chao/resources/assets/styles/main.scss
   at module.exports (/Volumes/kawase/wordpress_dev/Local/chao/app/public/wp-content/themes/chao/node_modules/stylelint/lib/utils/configurationError.js:8:28)
   at stylelint._fullExplorer.load.then.then.config (/Volumes/kawase/wordpress_dev/Local/chao/app/public/wp-content/themes/chao/node_modules/stylelint/lib/getConfigForFile.js:46:15)

error Command Failed with exit code 1.

结果它删除/dist 文件夹,我根本没有任何样式。

希望有人能帮忙!谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)