HTML and CSS Reference
In-Depth Information
# SetOutputFilter INCLUDES
#</FilesMatch>
To the following code snippet:
<FilesMatch "\.combined\.js$">
Options +Includes
AddOutputFilterByType INCLUDES application/
javascript application/json
SetOutputFilter INCLUDES
</FilesMatch>
<FilesMatch "\.combined\.css$">
Options +Includes
AddOutputFilterByType INCLUDES text/css
SetOutputFilter INCLUDES
</FilesMatch>
Then, in the js folder, create a file called script.combined.js .
Open the script.combined.js file in your text editor, and use the following
syntax with all the files that should be combined and output in the
script.combined.js file:
# <!--#include file="<path/to/file.js>" -->
# <!--#include file="<path/to/
another-file.js>" -->
If you are looking to combine stylesheets on the fly, you can do the same. Create a
file in the css folder called style.combined.css .
Open the style.combined.css file in your text editor, and use the following
syntax with all the files that should be combined and output in the
style.combined.css file:
Search WWH ::




Custom Search