---
title: "Comment by Sándor on \"Splitting your media queries into multiple files\" | Hashnode"
description: "As I understood you are trying to manage it via scss code. The method looks good, but I think it is easier to do in a post-build step by transforming bundled HT"
url: "https://hashnode.com/posts/splitting-your-media-queries-into-multiple-files/63f3adbf3ac574e2561bbaa4/comment/65c8f1356209494b48c93cf6"
---

[Discussion](https://hashnode.com/posts/splitting-your-media-queries-into-multiple-files/63f3adbf3ac574e2561bbaa4)

Comment [Splitting your media queries into multiple files](https://hashnode.com/posts/splitting-your-media-queries-into-multiple-files/63f3adbf3ac574e2561bbaa4)

[Sándor](https://hashnode.com/@levchak0910)

[Feb 11, 2024](https://hashnode.com/posts/splitting-your-media-queries-into-multiple-files/63f3adbf3ac574e2561bbaa4/comment/65c8f1356209494b48c93cf6)

As I understood you are trying to manage it via scss code. The method looks good, but I think it is easier to do in a post-build step by transforming bundled HTML and CSS files using PostCSS.

I have created a tool that can help with extracting media related rules into dedicated files. Have a look if you are interested )

github: levchak0910/css-media-splitter

[Thomas Portelange](https://hashnode.com/@lekoala)

[Feb 11, 2024](https://hashnode.com/posts/splitting-your-media-queries-into-multiple-files/63f3adbf3ac574e2561bbaa4/comment/65c8f1356209494b48c93cf6#reply-65c8f422ee0afa0f24556f3a)

Interesting ! thanks for sharing
