mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-22 09:38:18 +00:00
Re-enabled require
This commit is contained in:
@@ -93,7 +93,7 @@ STATICFILES_FINDERS = (
|
|||||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||||
'compressor.finders.CompressorFinder',
|
'compressor.finders.CompressorFinder',
|
||||||
)
|
)
|
||||||
#STATICFILES_STORAGE = 'require.storage.OptimizedStaticFilesStorage'
|
STATICFILES_STORAGE = 'require.storage.OptimizedStaticFilesStorage'
|
||||||
STATICFILES_DIRS = (
|
STATICFILES_DIRS = (
|
||||||
here('static'),
|
here('static'),
|
||||||
)
|
)
|
||||||
@@ -152,7 +152,7 @@ INSTALLED_APPS = (
|
|||||||
'django_extensions',
|
'django_extensions',
|
||||||
'django_gravatar',
|
'django_gravatar',
|
||||||
'compressor',
|
'compressor',
|
||||||
#'require',
|
'require',
|
||||||
'notification',
|
'notification',
|
||||||
'djcelery',
|
'djcelery',
|
||||||
'sorl.thumbnail',
|
'sorl.thumbnail',
|
||||||
|
|||||||
62
static/js/app.build.js
Normal file
62
static/js/app.build.js
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/**
|
||||||
|
* Build profile for django-require.
|
||||||
|
*
|
||||||
|
* This supports all the normal configuration available to a r.js build profile. The only gotchas are:
|
||||||
|
*
|
||||||
|
* - 'baseUrl' will be overidden by django-require during the build process.
|
||||||
|
* - 'appDir' will be overidden by django-require during the build process.
|
||||||
|
* - 'dir' will be overidden by django-require during the build process.
|
||||||
|
*/
|
||||||
|
({
|
||||||
|
|
||||||
|
/*
|
||||||
|
* List the modules that will be optimized. All their immediate and deep
|
||||||
|
* dependencies will be included in the module's file when the build is
|
||||||
|
* done. A minimum module entry is {name: "module_name"}.
|
||||||
|
*/
|
||||||
|
modules: [],
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Allow CSS optimizations. Allowed values:
|
||||||
|
* - "standard": @import inlining, comment removal and line returns.
|
||||||
|
* Removing line returns may have problems in IE, depending on the type
|
||||||
|
* of CSS.
|
||||||
|
* - "standard.keepLines": Like "standard" but keeps line returns.
|
||||||
|
* - "none": Skip CSS optimizations.
|
||||||
|
* - "standard.keepComments": Keeps the file comments, but removes line returns.
|
||||||
|
* - "standard.keepComments.keepLines": Keeps the file comments and line returns.
|
||||||
|
*/
|
||||||
|
optimizeCss: "standard",
|
||||||
|
|
||||||
|
/*
|
||||||
|
* How to optimize all the JS files in the build output directory.
|
||||||
|
* Right now only the following values are supported:
|
||||||
|
* - "uglify": Uses UglifyJS to minify the code.
|
||||||
|
* - "uglify2": Uses UglifyJS2.
|
||||||
|
* - "closure": Uses Google's Closure Compiler in simple optimization
|
||||||
|
* mode to minify the code. Only available if REQUIRE_ENVIRONMENT is "rhino" (the default).
|
||||||
|
* - "none": No minification will be done.
|
||||||
|
*/
|
||||||
|
optimize: "uglify2",
|
||||||
|
|
||||||
|
/*
|
||||||
|
* By default, comments that have a license in them are preserved in the
|
||||||
|
* output. However, for a larger built files there could be a lot of
|
||||||
|
* comment files that may be better served by having a smaller comment
|
||||||
|
* at the top of the file that points to the list of all the licenses.
|
||||||
|
* This option will turn off the auto-preservation, but you will need
|
||||||
|
* work out how best to surface the license information.
|
||||||
|
*/
|
||||||
|
preserveLicenseComments: true,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The default behaviour is to optimize the build layers (the "modules"
|
||||||
|
* section of the config) and any other JS file in the directory. However, if
|
||||||
|
* the non-build layer JS files will not be loaded after a build, you can
|
||||||
|
* skip the optimization of those files, to speed up builds. Set this value
|
||||||
|
* to true if you want to skip optimizing those other non-build layer JS
|
||||||
|
* files.
|
||||||
|
*/
|
||||||
|
skipDirOptimize: false
|
||||||
|
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user