I have requirement to setup theme for new microsite in our sitecore-SXA project so follow below steps do it, and it works fine too.
npm config set @sxa:registry https://sitecore.myget.org/F/sc-npm-packages/npm/
npm i -g @sxa/CLI
sxa register your-site-url
sxa new yourThemeName
- In this step it asks various things related to setup new Theme and one of them is to provide path of new theme.
- As it was my Theme setup so not sure that should i give whole path or relative to media library. So i gave full path like /sitecore/content/..../media library/....
If Sitecore is installed locally then go to Website\App_Config\Include\z.Feature.Overrides and enable the z.SPE.Sync.Enabler.Gulp.config.disabled file.
Go to your workspace folder
cd C:\workspace\haynesboone\yourThemeName npm install
Run default task to watch all files, compile, and upload to Sitecore: gulp
Run watch all to compile all files without uploading to Sitecore: gulp watchAll
Everything works fine and when ran gulp command it compiled file and uploaded minified file in yourThemeName folder, but this folder was created in sitecore under Media Library/Themes/sitecore/content......., that means instead of reading whole path and creating customthemefolder under Themes, it create whole structure again. It is not what i want, so how can i correct the custom theme folder path?