Closed JohnnyMcWeed closed 4 years ago
Do you get an exception? the luya\web\Asset does not require a sourcePath, it has a default path:
core/console/commands/ThemeController.php
-> line 162
\'{$themeName}.css\',
core/console/commands/ThemeController.php
-> line 180
use luya\themes\frontend\\'.$className.';
Sorry my fault, bad explanation. Yes the asset is correct like this, but this seems somehow confusing that there's a need to add a new asset folder inside -> The file or directory to be published does not exist: F:\Projekte\projectname\themes\themename\resources\theme-asset
(As the folder "theme-asset" is not built by default)
So I think either the $sourcePath
should be set or the folder should be built automatically. So probably somehow here add the folder...
core/console/commands/ThemeController.php
-> line 75
$folders = [
@JohnnyMcWeed thank you for reporting, I open a PR to fix it.
What steps will reproduce the problem?
Use
theme/create
commandWhat is the expected result?
Output files should work as theme by default.
What do you get instead?
Not working files.
Additional infos
$sourcePath
set I think