Closed yleaxeman closed 5 months ago
Problem
When using @folkehelseinstituttet/style with Yarn in a monorepo (confirmed) the import references in SASS files to ./node_modules fails.
@folkehelseinstituttet/style
import
./node_modules
Solution
Make import statements to root of package, eg. @import 'bootstrap/...'
package
@import 'bootstrap/...'
Reference: https://webpack.js.org/loaders/sass-loader/#resolving-import-at-rules
Acceptance criteria
node_modules
./node_modules/bootstrap/etc
bootstrap/etc
@import "@folkehelseinstituttet/style/import/all.scss";
.scss
Problem
When using
@folkehelseinstituttet/style
with Yarn in a monorepo (confirmed) theimport
references in SASS files to./node_modules
fails.Solution
Make
import
statements to root ofpackage
, eg.@import 'bootstrap/...'
Reference: https://webpack.js.org/loaders/sass-loader/#resolving-import-at-rules
Acceptance criteria
@folkehelseinstituttet/style
node_modules
./node_modules/bootstrap/etc
tobootstrap/etc
@import "@folkehelseinstituttet/style/import/all.scss";
in your solution's.scss
file