Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not combine media queries. #6

Open
bilalmalkoc opened this issue Dec 10, 2020 · 0 comments
Open

Not combine media queries. #6

bilalmalkoc opened this issue Dec 10, 2020 · 0 comments

Comments

@bilalmalkoc
Copy link

bilalmalkoc commented Dec 10, 2020

I am using postcss 8.2.2. But not combining same media queries from different files. I am using with webpack and using mini-css-extract-plugin with import.

webpack.config.js

{
    test: /\.(sa|sc|c)ss$/,
    use: [
        MiniCssExtractPlugin.loader,
        'css-loader',
        {
            loader: 'postcss-loader',
            options: {
                sourceMap: true,
            },
        },
        'resolve-url-loader',
        {
            loader: 'sass-loader',
            options: {
                implementation: sass,
            },
        },
        {
            loader: 'sass-resources-loader',
            options: {
                resources: ['./src/scss/_variables.scss'],
            },
        },
    ],
},

postcss.config.js

module.exports = {
    plugins: [require('postcss-combine-media-query'), require('autoprefixer')],
};

Autoprefixer working good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant