zhopkinsdev / vue-tailwind-boilerplate

A starter/boilerplate for Vue.js and Tailwind CSS integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-tailwind-boilerplate

Boilerplate project for Vue.js and Tailwind CSS integration.

Commands used to generate this boilerplate

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": {}
    }
  },

Compiles and hot-reloads for development

npm install -g @vue/cli-service-global
npm run serve

About

A starter/boilerplate for Vue.js and Tailwind CSS integration

License:MIT License


Languages

Language:Vue 70.6%Language:HTML 18.5%Language:JavaScript 9.2%Language:CSS 1.8%