diff --git a/sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts b/sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts index 71138dd..8ff3a32 100644 --- a/sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts +++ b/sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts @@ -3,10 +3,9 @@ import { Bundler } from 'scss-bundle'; import { writeFile } from 'fs-extra'; /** Bundles all SCSS files into a single file */ -console.log('Hii'); async function bundleScss() { const { found, bundledContent, imports } = await new Bundler() - .bundle('../src/lib/styles/sunbird/_styles.scss', ['../src/lib/styles/**/*.scss']); + .bundle('./projects/sb-ui-components/src/lib/styles/_styles.scss', ['./projects/sb-ui-components/src/lib/styles/**/*.scss']); if (imports) { const cwd = process.cwd(); @@ -22,7 +21,7 @@ async function bundleScss() { } if (found) { - await writeFile('../dist/lib/styles/sunbird/_styles.scss', bundledContent); + await writeFile('./dist/sb-ui-components/lib/styles.scss', bundledContent); } } diff --git a/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/_styles.scss b/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/_styles.scss new file mode 100644 index 0000000..b639d7e --- /dev/null +++ b/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/_styles.scss @@ -0,0 +1,8 @@ +@import "./sunbird/inlinefonts/fonts"; +@import "./sunbird/variables"; +@import "./sunbird/mixins/mixins"; +@import "./sunbird/base/base"; +@import "./sunbird/layout/layout"; +@import "./sunbird/pages/pages"; +@import "./sunbird/global"; + diff --git a/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/sunbird/_styles.scss b/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/sunbird/_styles.scss deleted file mode 100644 index 3872351..0000000 --- a/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/sunbird/_styles.scss +++ /dev/null @@ -1,8 +0,0 @@ -@import "./inlinefonts/fonts"; -@import "./variables"; -@import "./mixins/mixins"; -@import "./base/base"; -@import "./layout/layout"; -@import "./pages/pages"; -@import "./global"; -