Skip to content

Watch mode not working for custom file extension #7895

@Kcko

Description

@Kcko

Hi,

Im using tailwind (last version) + scss together via post-css.
Everything works fine.

Im using npm script for watch mode
"dev:tw:watch2": "set TAILWIND_MODE=watch&postcss --env dev ./www/sass/screen.scss -o ./www/assets/css/app.dev.css --watch --verbose", and its works fine.

But Tailwind doesn't track my files with a .latte extension (similar to a twig system). I must resave css / scss file and TW regenerate all ... its confusing.

tailwind.config.js

module.exports = {
    //content: ['./src/**/*.{html,js}'],
    content: ['**/*.latte'],
    theme: {
        extend: {},
    },
    plugins: [],
};

And here is short video hot it works / dont works ;-)

https://bit.ly/3ua5n3F

Can you help me how to set it right or what am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions