css alias
See original GitHub issueQuestion
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:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
for sure @andrevenancio ✌️
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?