Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Jan 16, 2024
1 parent 64148a9 commit e89ce58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/core/styles/core/mediaqueries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@use 'sass:math';
@use 'sass:string';
@use '@sbb-esta/lyne-design-tokens' as sbb-tokens;
@use '@sbb-esta/lyne-design-tokens/dist/scss/sbb-variables.scss' as sbb-tokens;

$mq-breakpoints: (
zero: sbb-tokens.$sbb-breakpoint-zero-min,
Expand Down
2 changes: 1 addition & 1 deletion src/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function typography(): PluginOption {
},
generateBundle() {
const globalCss = sass.compile(join(viteConfig.root, 'core/styles/global.scss'), {
loadPaths: [root.pathname],
loadPaths: [root.pathname, join(root.pathname, '/node_modules/')],
});
this.emitFile({
type: 'asset',
Expand Down
4 changes: 3 additions & 1 deletion web-test-runner.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { createServer } from 'vite';
const isCIEnvironment = !!process.env.CI || process.argv.includes('--ci');
const isDebugMode = process.argv.includes('--debug');

const globalCss = sass.compile('./src/components/core/styles/global.scss', { loadPaths: ['.'] });
const globalCss = sass.compile('./src/components/core/styles/global.scss', {
loadPaths: ['.', './node_modules/'],
});

const browsers = isCIEnvironment
? [
Expand Down

0 comments on commit e89ce58

Please sign in to comment.