0๐
โ
My colleague managed to solve this.
- In the project root folder created a file called .sassrc:
{
"includePaths": [ "node_modules" ]
}
-
Removed
@import '~foundation-sites/scss/util/breakpoint';
from _custom.scss. -
Changed vue.config.js to this (importing the whole foundation lib):
module.exports = {
css: {
loaderOptions: {
sass: {
prependData: `
@import "~@/scss/_custom.scss";
@import 'foundation-sites/scss/foundation';
`
}
}
}
}
And now breakpoints util can be used within each Vue component with scoped css.
Source:stackexchange.com