Add sass loader
npm install node-sass sass-loader --save-dev
NUXT simultaneous asynchronous data request
async asyncData({ params }) {
let [users, posts] = await Promise.all([
axios.get('http://jsonplaceholder.typicode.com/users'),
axios.get('http://jsonplaceholder.typicode.com/posts')
])
return {
users: users.data,
posts: posts.data
}
}
Don't forget to install and import axios:
npm install axios --save
import axios from 'axios'