Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

gulp build

Open dom-kelly opened this issue 9 years ago • 8 comments

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?

dom-kelly avatar Jan 26 '17 14:01 dom-kelly

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.

venkatasandeepd avatar Jan 27 '17 06:01 venkatasandeepd

I don't see any mention of any of those packages in my theme.less. Will theme.less get overwritten on update?

dom-kelly avatar Jan 27 '17 10:01 dom-kelly

/* 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!

venkatasandeepd avatar Jan 27 '17 11:01 venkatasandeepd

So what are you changing these two lines to?

dom-kelly avatar Jan 27 '17 11:01 dom-kelly

comment them or remove them

venkatasandeepd avatar Jan 27 '17 11:01 venkatasandeepd

So I only want to build the default theme, plus any of my themes. If I uncomment, then won't that ignore all themes?

dom-kelly avatar Jan 27 '17 11:01 dom-kelly

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/

venkatasandeepd avatar Jan 27 '17 11:01 venkatasandeepd

ok thanks I'll give that a go

dom-kelly avatar Jan 27 '17 13:01 dom-kelly