E
E
Evgeny Romanovsky2015-05-19 11:32:37
css
Evgeny Romanovsky, 2015-05-19 11:32:37

What is the correct way to store static files in a web application project?

Let's say I put js, css and img files (as well as fonts) into modules with /app as the root directory. I
also use bower to include libraries (bootstrap, jquery, etc.).
Then I use grunt/gulp to compile the scripts and styles (combine, minify, etc.) and place them in the /wwwroot directory.
Question: it seems that all the remaining statics (fonts, images) should also be copied to the /wwwroot folder (otherwise, for example, the same icon fonts from bootstrap will refer to bower_components/bootstrap/...). But in this case, it is not clear what structure these files should have (they should still be scattered by modules, or they should be thrown into a common folder). In addition, in the compiled css files, you need to replace the urls with images and fonts.
Or is this generally the wrong approach, and you need to immediately put all the statics in the / wwwroot folder? But at the same time, you still have to copy the bootstrap styles, and after them copy the fonts, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2015-05-19
@viktorvsk

Such issues are solved by asset pipeline
Sprockets for Rails
Kind of like Brunch for frontend
And judging by your status, for dot net - stackoverflow.com/questions/9498734/monorail-any-c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question