question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question

Hi, I’m using webpack alias to target some util folders on my .scss files. for example a scss file I’m using looks like this:

@import '~app/styles/variables';
.myModule {
    background-color: $main-colour;
}

Unfortunately I don’t think this is working with my current docz configuration.

Here’s what I have:

import { css } from 'docz-plugin-css';

export default {
    dest: '/documentation',
    plugins: [
        css({
            preprocessor: 'sass',
        }),
    ],
};

Am I doing something wrong? I kind of don’t want to import my variables through relative paths…

Thanks in advance Andre

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pedronauckcommented, Sep 28, 2018

for sure @andrevenancio ✌️

0reactions
andrevenanciocommented, Dec 20, 2018

Hi @pedronauck thanks for your reply.

I now have this working and docz exports my component’s css along side the documentation folder. I do have a question though. Where am I to change the file name? It gets saved with a name replicating the original source location + hash . css

Example: my component is on /src/app/cms-components/hero-text.mdx

And that gets saved to /documentation/static/css/src-app-cms-components-hero-text.SOMEBIGHASH.css

This is likely to be in the same modifyBundlerConfig?

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to alias class name in css or sass - Stack Overflow
I am using this font-awesome and I am trying to create an alias name for some of the icon classes. So that .icon-globe...
Read more >
Hocus Pocus, CSS Aliases | Kilian Valkhof
CSS Aliases look interesting and you can read a bit about them at the end of this blog post. Here's a list of...
Read more >
css-aliases - npm
Lets you create custom aliases for CSS, less, SASS and etc. properties with an @alias rule. Latest version: 1.1.10, last published: 3 years ......
Read more >
RobinCK/css-aliases - GitHub
Lets you create custom aliases for CSS,less, SASS and etc. properties with an @alias rule - GitHub - RobinCK/css-aliases: Lets you create custom ......
Read more >
Aliases | RTLCSS
Aliases allows you to define how to process Custom properties (sometimes referred to as CSS variables or cascading variables).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found