Reputation: 376
I can't find a more appropriate. I'm using PhpStorm to create web content (php, html, css, js..) and I'm facing the problem of long files (not even so long few hundred lines enough to be lost) where it gets hard to find things and remove unnecessary content.
I was wondering if there is a functionality, plugin or external file manager where it creates different files from one file on disk.
For example: when we have a .css
file, for sure it's content is dealing with different features/parts of the html but they are all on the same html page. So it's a bad idea to create different .css
file for each part, but it would be nice to have different virtual files for each part/feature where we can code and debug separately our code; but they are saved to same file.
Lets say:
common_header.css
: deals with headerscommon_menu.css
: deals with menu (some menu we have on our page)common_footer.css
: deals with what ever to the end of page So now while coding we see different files (best as a subtree of the original file) some thing like that on file manager:
....other file // the dot here should be + since subtree hidden
common.css // the dot here should be - since subtree is shown
....other file
But when on disk they are all on the same file common.css
that is loaded to our browser as one too.
Upvotes: 0
Views: 105
Reputation: 4875
If your target is to reduce the number of files being loaded from your server, after the application has been deployed, you might merge and compress your files as shown here.
In case you don't want to waste computing time to compress the files on each call, you could adjust your build process to generate them once during build (something like minify).
Upvotes: 0