我有一个与Liferay 7(基于Ant)兼容的主题。我试图优化Liferay Portal CE 7.0的插件。
我将主题从插件sdk 迁移到 Liferay主题生成器,当我运行gulp build时出现以下错误:
C:\Users\User1\liferay-workspace\themes\new-theme\node_modules\liferay-theme-tasks\tasks\build.js:347
throw err;
^
Error: build\_css\main.scss
Error: It's not clear which file to import for '@import "custom"'.
Candidates:
_custom.scss
custom.css
Please delete or rename all but one of these files.
on line 19 of build/_css/main.scss
>> @import "custom";
^
at options.error (C:\Users\User1\liferay-workspace\themes\new-theme\node_modules\node-sass\lib\index.js:286:26)
:themes:new-theme:gulpBuild FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':themes:new-theme:gulpBuild'.
> Process 'command 'cmd'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED