@@ -100,6 +100,13 @@ build.builder = function(cli) {
100100 describe : "Overrides the framework version defined by the project" ,
101101 type : "string"
102102 } )
103+ . option ( "experimental-css-variables" , {
104+ describe :
105+ "If present, the CSS variables (css-variables.css, css-variables.source.less) " +
106+ "and the skeleton for a theme (library-skeleton.css, [library-skeleton-RTL.css]) are generated" ,
107+ default : false ,
108+ type : "boolean"
109+ } )
103110 . example ( "ui5 build" , "Preload build for project without dependencies" )
104111 . example ( "ui5 build self-contained --all" , "Self-contained build for project including dependencies" )
105112 . example ( "ui5 build --all --exclude-task=* --include-task=createDebugFiles generateAppPreload" ,
@@ -111,7 +118,9 @@ build.builder = function(cli) {
111118 "Build project and dependencies in dev mode, except \"sap.ui.core\" and \"sap.m\" " +
112119 "(useful in combination with --include-task)" )
113120 . example ( "ui5 build dev" ,
114- "Build project and dependencies in dev mode. Only a set of essential tasks is executed." ) ;
121+ "Build project and dependencies in dev mode. Only a set of essential tasks is executed." )
122+ . example ( "ui5 build --experimental-css-variables" ,
123+ "Preload build for project without dependencies but with CSS variable artefacts" ) ;
115124} ;
116125
117126async function handleBuild ( argv ) {
@@ -162,7 +171,8 @@ async function handleBuild(argv) {
162171 jsdoc : command === "jsdoc" ,
163172 devExcludeProject : argv [ "dev-exclude-project" ] ,
164173 includedTasks : argv [ "include-task" ] ,
165- excludedTasks : argv [ "exclude-task" ]
174+ excludedTasks : argv [ "exclude-task" ] ,
175+ cssVariables : argv [ "experimental-css-variables" ]
166176 } ) ;
167177}
168178
0 commit comments