Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
374 views
in Q2A Core by

Hi

I want to install Minit for combine CSS and Javascript files for q2a application

how install it in q2a 

those minit works with q2a

Minit in github = https://github.com/kasparsd/minit

Q2A version: 1.7.4

1 Answer

+1 vote
by
That appears to be a Wordpress plugin, so it's probably very tailored to the WP architecture. I don't know if any parts of it can be used independently, looked to me like every file calls a wp_* function so probably not.

The general answer for this is to make a plugin. In this case you'd want a layer plugin that overrides the head_css() function, check all the files in $this->content['css_src'] and combine them. Then output a single stylesheet tag.

Take a look at the docs for more: http://docs.question2answer.org/plugins/
...