Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /**
* Ships the standalone Glass sub-theme to dist as-is.
*
* Glass is an opt-in "frosted glass" overlay layered on top of a base theme.
* It is deliberately excluded from the production CSS monolith (it lives in
* src/glass-theme/, which the buildCss globs do not match), so it never ends up
* baked into slds2.*.css. Instead it is published as its own file that
* consumers load after the base theme stylesheet.
*
* No PostCSS/transform step: the source is shipped verbatim.
*/
import fs from 'fs-extra';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const root = path.resolve(__dirname, '../');
const src = path.resolve(root, 'src/glass-theme/glass.css');
const dest = path.resolve(root, 'dist/css/sub-themes/glass.css');
fs.ensureDirSync(path.dirname(dest));
fs.copySync(src, dest, { overwrite: true });
console.log('Glass theme copied to dist/css/sub-themes/glass.css');
|