Boilerplate project for Vue.js and Tailwind CSS integration.
Scaffolded project structure and development environment with command:
vue create vue-tailwind-boilerplate
Installed Tailwind CSS:
npm install tailwindcss
Created file ./assets/css/style.css
and imported Tailwind:
@tailwind base;
@tailwind components;
@tailwind utilities;
Created file postcss.config.js
and added:
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer')
]
}
Deleted postcss
entry from package.json
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
npm install -g @vue/cli-service-global
npm run serve