I'm using Gulp.js to deal with my JavaScript and SASS files to concatenate them and minify them but I'm unsure how to merge it with my Django workflow. I want to be able to automatically minify the files into one big JavaScript and CSS file to reduce HTTP requests and to allow easy uploading to a CDN but I need to be able to edit to my base template so that the development version (which links to the files individually) can change to linking to the big concatenated files. I was thinking about writing a simple parser that does the changes automatically but am unsure what the best method to use is.

Should I use a Python HTML library to edit the HTML file or should I use regular expressions to do the simple text replacement? I should be able to call the Python script from a Gulp task to do the actual editing. I'd also want to change the values back when I move back to the development version of my site.

Any help is appreciated.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/546479DD.6010407%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to