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

Using group-css-media-queries with webpack Encore for Symfony 4 projects ? #23

Open
khoudj opened this issue Dec 2, 2019 · 2 comments

Comments

@khoudj
Copy link

khoudj commented Dec 2, 2019

Is there a way to use group-css-media-queries with webpack Encore for Symfony 4 projects ?

In Webpack Encore configuration, there is a method .enablePostCssLoader(). This method accept a postCssLoaderOptionsCallback as signature. I think we can plug group-css-media-queries here but i not sure who to do that, any idea

@kravchukmg
Copy link

I faced the same problem.

@WebLifeOn
Copy link

you can add postcss-combine-media-query => yarn postcss-combine-media-query

.enablePostCssLoader() in webpack.config.js

postcss.config.js file

module.exports = {
  plugins: {
    'autoprefixer': {},
    'postcss-combine-media-query': {}
  }
};

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

3 participants