- Создайте новый каталог и установите TailwindCSS (, npx Tailwindcss init)
Код: Выделить всё
npm install tailwindcss
- Установите соответствующие каталоги содержимого ()
Код: Выделить всё
"./templates/**/*.html"
- Создайте базовое приложение Flask, включающее скомпилированный TailwindCSS.
- Попытайтесь применить стили с точкой останова md.
tailwind.config.js
Код: Выделить всё
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./templates/**/*.html",
"./static/src/**/*.js"
],
theme: {
extend: {},
},
plugins: [],
}
Код: Выделить всё
Test App {% block title %}{% endblock title %}
Test App
{% block header %}{% endblock header %}
{% block content %}{% endblock content %}
Код: Выделить всё
{% extends 'base.html' %}
{% block header %}
{% block title %}Home{% endblock title %}
{% endblock header %}
{% block content %}
Learn more about this project by visiting the About page.
{% endblock content %}
Подробнее здесь: https://stackoverflow.com/questions/791 ... -applicati