Closed hmac closed 10 years ago
Oh also I added fastclick for the dropdown which makes it much more responsive on mobile safari
What do mangle=True
and mangle_toplevel=True
do?
Also, is there any reason you've imported megaphysics.css
, instead of megaphysics.min.css
?
I like the compile_js
and compile_css
. Very symmetric.
I think the mangle just mucks about with the code a bit more, maybe to make it smaller? Not sure, it was in the example from the module.
And I don't see any reason to keep minified css in the assets folder. What happens when you want to edit it?
Uses
imports.js
andimports.css
to specify assets to be included. These files haveimport blah.js
statements that cause a file in the same directory to be included.The directory structure is changed to:
assets
→site_assets
→js
assets
→site_assets
→css
(I left the bootstrap fonts alone because I don't know how they get used anyway).CSS and JS get minified if they aren't already, and they get added into the final file in the exact order that the
import
statements appear. You can also put extra js/css in the import files themselves if you really want to.