folkehelseinstituttet / Fhi.Frontend.Style

2 stars 2 forks source link

Support using @folkehelseinstituttet/style with package manager of choice and/or monorepo #382

Closed yleaxeman closed 5 months ago

yleaxeman commented 6 months ago

Problem

When using @folkehelseinstituttet/style with Yarn in a monorepo (confirmed) the import references in SASS files to ./node_modules fails.

Solution

Make import statements to root of package, eg. @import 'bootstrap/...'

Reference: https://webpack.js.org/loaders/sass-loader/#resolving-import-at-rules

Acceptance criteria