Commit d8e6dc3a authored by Yuki's avatar Yuki
Browse files
parents
.cache/
dist/
node_modules/
This diff is collapsed.
{
"license": "MIT",
"scripts": {
"dev": "parcel src/index.html",
"build": "parcel build src/index.html"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^4.0.3",
"autoprefixer": "^9.8.6",
"parcel-bundler": "^1.12.5",
"postcss": "^7.0.36",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.4"
}
}
const purgecss = require('@fullhuman/postcss-purgecss')({
content: [
'./src/**/*.html',
],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
});
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
...(process.env.NODE_ENV === 'production' ? [purgecss] : []),
],
};
/* purgecss start ignore */
@tailwind base;
@tailwind components;
/* purgecss end ignore */
@tailwind utilities;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Tailwind CSS Boilerplate</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body class="py-16 bg-gray-200">
<h1 class="mb-4 text-4xl text-center text-gray-800 font-bold font-sans">
Tailwind CSS Boilerplate
</h1>
<p class="text-sm text-center text-gray-600 font-sans">
Get started by editing index.html
</p>
</body>
</html>
module.exports = {
purge: ['./src/**/*.html'],
theme: {},
variants: {},
plugins: [],
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment