We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c65da commit e419503Copy full SHA for e419503
packages/main/rollup.config.less.js
@@ -11,6 +11,24 @@ const StyleBelizeHcbMap = {};
11
const SAP_BELIZE = "sap_belize";
12
const SAP_BELIZE_HCB = "sap_belize_hcb";
13
14
+function ui5LessPlugin() {
15
+ const isLess = fileName => path.extname(fileName) === ".less";
16
+
17
+ return {
18
+ name: "ui5-less-plugin",
19
+ transform(code, file) {
20
+ if (isLess(file)) {
21
+ this.addWatchFile(path.join(process.cwd(), `src/themes/base/${path.basename(file)}`));
22
+ }
23
24
25
+ code,
26
+ map: null,
27
+ };
28
29
30
+}
31
32
const getPlugins = () => {
33
const plugins = [];
34
@@ -40,6 +58,8 @@ const getPlugins = () => {
40
58
}
41
59
}));
42
60
61
+ plugins.push(ui5LessPlugin());
62
43
63
return plugins;
44
64
};
45
65
0 commit comments