-
Notifications
You must be signed in to change notification settings - Fork 51
Nathan Walker edited this page Mar 13, 2019
·
3 revisions
For scss package imports across shared code and projects.
For convenient shared SASS usage throughout. If you look inside xplat/web/scss/_variables.scss you will see @import '~@workspace/scss/common'; (substitute workspace with your name). This allows your web specific shared SASS to consume the entire workspace (cross platform) SASS from libs easily.
This allows full intellisense support across rich iOS/Android api's made available via NativeScript in your shared code in xplat/nativescript.
You might experience this issue:
ERROR in ./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./xplat/web/scss/_index.scss
Module build failed:
@import '~@[your workspace name]/scss/index';
^
File to import not found or unreadable: ~@[your workspace name]/scss/index.
You just need to install root dependencies: npm install in the root of your workspace.