Enable Compass Sass for Vue Cli 3 (vue.config.js)
August 24, 2018Install sass
and compass-mixins.
npm install sass-loader node-sass --save-dev
npm install compass-mixins --save-dev
Edit vue.config.js
.
const path = require('path')
module.exports = {
css: {
loaderOptions: {
sass: {
includePaths: [path.resolve(__dirname, './node_modules/compass-mixins/lib')]
}
}
}
}
Using compass
in sass
.
@import "compass/css3"
@import "compass/css3/animation"
@include keyframes(placeHolderShimmer)
0%
background-position: -468px 0
100%
background-position: 468px 0
.lua-content-placeholder
@include animation-duration(1s)
@include animation-fill-mode(forwards)
@include animation-iteration-count(infinite)
@include animation-name(placeHolderShimmer)
@include animation-timing-function(linear)
background: #f6f7f8
background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%)
background-size: 800px 104px
height: 96px
position: relative
- algo-trading
- algolia
- analytics
- android
- android-ktx
- android-permission
- android-studio
- apps-script
- bash
- binance
- bootstrap
- bootstrapvue
- chartjs
- chrome
- cloud-functions
- coding-interview
- contentresolver
- coroutines
- crashlytics
- crypto
- css
- dagger2
- datastore
- datetime
- docker
- eslint
- firebase
- firebase-auth
- firebase-hosting
- firestore
- firestore-security-rules
- flask
- fontawesome
- fresco
- git
- github
- glide
- godot
- google-app-engine
- google-cloud-storage
- google-colab
- google-drive
- google-maps
- google-places
- google-play
- google-sheets
- gradle
- html
- hugo
- inkscape
- java
- java-time
- javascript
- jetpack-compose
- jetson-nano
- kotlin
- kotlin-serialization
- layout
- lets-encrypt
- lifecycle
- linux
- logging
- lubuntu
- markdown
- mate
- material-design
- matplotlib
- md5
- mongodb
- moshi
- mplfinance
- mysql
- navigation
- nginx
- nodejs
- npm
- nuxtjs
- nvm
- pandas
- payment
- pip
- pwa
- pyenv
- python
- recylerview
- regex
- room
- rxjava
- scoped-storage
- selenium
- social-media
- ssh
- ssl
- static-site-generator
- static-website-hosting
- sublime-text
- ubuntu
- unit-test
- uwsgi
- viewmodel
- viewpager2
- virtualbox
- vue-chartjs
- vue-cli
- vue-router
- vuejs
- vuelidate
- vuepress
- web-development
- web-hosting
- webpack
- windows
- workmanager
- wsl
- yarn