-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to @import absolute path directly? #2281
Comments
You should define a variable using stylus: {
define: {
$variables: path.resolve('./styles/variables.styl')
}
} And then inside a stylus file: @import $variables You can also use stylus: {
import: [
path.resolve('./styles/variables.styl')
]
} |
@Panya thx,that's very helpful |
@Panya can you point me to documentation for |
It's not documented(?) property of the stylus-loader options object. It corresponds to |
In case someone is looking for rollup.
|
webpack
xx.styl
How to
@import
absolute path directly?The text was updated successfully, but these errors were encountered: