Skip to content

vue cli 3 does not load postcss.config.js or .postcssrc.js #852

Closed
@twocngdagz

Description

@twocngdagz

Version

3.0.0-alpha.13

Reproduction link

https://github.com/twocngdagz/vue-tailwind-select

Steps to reproduce

I added a postcss.config.js or postcssrc.js for postcss to load tailwindcss

module.exports = {
plugins: [
require("postcss-import")(),
require("tailwindcss")("./tailwind-config.js"),
require("autoprefixer")(),
]
};

What is expected?

it should process the

@tailwind preflight;

@tailwind utilities;

What is actually happening?

when running vue build src/main.js

style output
#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:center;color:#2c3e50;margin-top:60px}h3[data-v-2ebf6f26]{margin:40px 0 0}ul[data-v-2ebf6f26]{list-style-type:none;padding:0}li[data-v-2ebf6f26]{display:inline-block;margin:0 10px}a[data-v-2ebf6f26]{color:#42b983}@tailwind preflight;@tailwind utilities;

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