We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if i has a js:
module.exports = { textColor: "#333" }
How do I inject this data into stylus? Like the "data" field of the SCSS configuration:
const styleVariables = require('/style/scss/variables') { test: /\.scss$/, use: [ 'css-loader', 'postcss-loader', { loader: 'sass-loader', options: { data: Object.keys(styleVariables) .map(k => `\$${k}: ${styleVariables[k]};`) .join('\n') } } ] }
a { color: $textColor; }
The text was updated successfully, but these errors were encountered:
Hello! You can use json(...) function in stylus http://stylus-lang.com/docs/bifs.html#jsonpath-options Before you should convert .js to .json
Sorry, something went wrong.
You can use json #199, also we will implement the additionalData option
json
additionalData
Successfully merging a pull request may close this issue.
if i has a js:
How do I inject this data into stylus? Like the "data" field of the SCSS configuration:
The text was updated successfully, but these errors were encountered: