File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 'django.contrib.auth.middleware.AuthenticationMiddleware' ,
3131 'django.contrib.messages.middleware.MessageMiddleware' ,
3232 'django.middleware.clickjacking.XFrameOptionsMiddleware' ,
33+ 'django.middleware.gzip.GZipMiddleware' ,
34+ 'pipeline.middleware.MinifyHTMLMiddleware' ,
3335]
3436
3537TEMPLATES = [
115117 'output_filename' : 'css/main.css' ,
116118 },
117119 },
118- }
120+ 'JAVASCRIPT' : {
121+ 'main' : {
122+ 'source_filenames' : (
123+ 'js/jquery-3.3.1.min.js' ,
124+ 'bootstrap/javascripts/bootstrap.min.js' ,
125+ ),
126+ 'output_filename' : 'js/main.min.js' ,
127+ }
128+ }}
119129PIPELINE ['COMPILERS' ] = ('libsasscompiler.LibSassCompiler' ,)
120130
131+ PIPELINE ['CSS_COMPRESSOR' ] = 'pipeline.compressors.yuglify.YuglifyCompressor'
132+ PIPELINE ['JS_COMPRESSOR' ] = 'pipeline.compressors.yuglify.YuglifyCompressor'
133+
121134
122135# Internationalization
123136# https://docs.djangoproject.com/en/2.0/topics/i18n/
You can’t perform that action at this time.
0 commit comments