
| Key: |
DEMO-3
|
| Type: |
New Feature
|
| Status: |
Resolved
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Steve Luo
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
Demo
Created: 25/Feb/20 02:36 PM
Updated: 19/Jan/25 08:29 AM
|
|
| Component/s: |
None
|
| Affects Version/s: |
None
|
| Fix Version/s: |
1.0.1,
1.0.2
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
|
In my app i do something like this is sass
$primary-color: #2196F3;
:export {
primaryColor: $primary-color;
}
The idea is to be able to require within javascript like this
import { locals } from '~/variables.scss';
export const primaryColor: string = locals.primaryColor;
Now primaryColor is available everywhere.
However this works when i use css-loader but not when i use nativescript-dev-webpack/css2json-loader.
Do you have any idea on how i can make it work
|
|
Description
|
In my app i do something like this is sass
$primary-color: #2196F3;
:export {
primaryColor: $primary-color;
}
The idea is to be able to require within javascript like this
import { locals } from '~/variables.scss';
export const primaryColor: string = locals.primaryColor;
Now primaryColor is available everywhere.
However this works when i use css-loader but not when i use nativescript-dev-webpack/css2json-loader.
Do you have any idea on how i can make it work |
Show » |
| There are no comments yet on this issue.
|
|