TIL, 2019-05-12, Vue, Storybook, Sbin
- How to Import a Sass File into Every Vue Component in an App
- Good design is by nature, successful when it’s cohesive.
- Restart server.
- No need to underscore name, it’s a Sass naming convention.
- Components you import need the
lang="scss"
in the SFC.
module.exports = {
css: {
loaderOptions: {
sass: {
data: `@import "@/styles/_variables.scss";`
}
}
}
};
<style lang="scss">
#app {
color: $primary;
}
</style>
- Storybook: Something to think about if we’re building multiple front-ends now.
can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) during bundle install with gem
- Bundler version 2 introduced a new feature to automatically use the version of Bundler specified in the Gemfile.lock of your project. Delete the line at the bottom
BUNDLED WITH 1.17.3
and thenbundle install
again.
- Bundler version 2 introduced a new feature to automatically use the version of Bundler specified in the Gemfile.lock of your project. Delete the line at the bottom
/usr/local/sbin is not writable.
cd /usr/local; sudo mkdir sbin
, then add permissions or whatever to that directory, thenbrew link
.