gulp build
When I run gulp built I end up with default, basic, github and material theme folders in dist. My theme.config only specifies default. Why are these getting created?
checkout theme.less file in src/, there you can find optional import for other packages like github, basic, material etc., and theme packages in src/themes/
Please try removing the import and unwanted packages and rebuild.
I don't see any mention of any of those packages in my theme.less. Will theme.less get overwritten on update?
/* Component's site.variables */ @import (optional) "@{themesFolder}/@{theme}/globals/site.variables";
/* Packaged Theme */ @import (optional) "@{themesFolder}/@{theme}/@{type}s/@{element}.variables";
these are the imports i mentioned. When you run a build, src/ wont be affected. So change the contents in src/ and src/themes/ as I mentioned and rebuild. It worked for me!
So what are you changing these two lines to?
comment them or remove them
So I only want to build the default theme, plus any of my themes. If I uncomment, then won't that ignore all themes?
yes, it'll ignore all other themes. If you want a particular set of themes, keep that particular themes in src/themes/ folder and use that above imports, so when you build, only that packages will be created in dist/
ok thanks I'll give that a go