Add Laravel Mix and Tailwind

This commit is contained in:
Oliver Davies 2019-03-17 22:50:21 +00:00
parent ff6f6c80cd
commit f26a8af215
5 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,4 @@
/mix-manifest.json
/node_modules/
/style.css
/yarn.lock

View file

@ -0,0 +1,15 @@
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"cross-env": "^5.2.0",
"laravel-mix": "^4.0.14",
"tailwindcss": "https://github.com/tailwindcss/tailwindcss.git#next"
}
}

View file

@ -0,0 +1,13 @@
@tailwind base;
a {
@apply text-grey-darker no-underline
}
a:hover,
a:focus {
@apply text-blue-dark underline
}
@tailwind components;
@tailwind utilities;

View file

@ -0,0 +1,10 @@
module.exports = {
theme: {
extend: {
colors: {
'blue-dark': '#0073aa',
'grey-darker': '#767676',
}
}
}
}

View file

@ -0,0 +1,5 @@
const mix = require('laravel-mix')
mix.postCss('src/css/style.css', '', [
require('tailwindcss')('./tailwind.config.js'),
])