Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fasilkom UI Open Source Software
Kape
Commits
d8e52d32
Commit
d8e52d32
authored
Mar 05, 2017
by
Zamil Majdy
Browse files
#140382397 #4 Use semantic as CDN, add jz.gz file on production
parent
3a568a47
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/templates/core/index.html
View file @
d8e52d32
...
...
@@ -5,8 +5,8 @@
<head>
<meta
charset=
"UTF-8"
>
<title>
Yuk Cari Tempat Kape :)
</title>
<link
rel=
"stylesheet"
href=
"{% static
'css/custom.css' %}"
>
<link
rel=
"stylesheet"
href=
"
{% static 'cs
s/semantic-ui/semantic.min.css
' %}
"
>
<link
rel=
"stylesheet"
href=
"{% static 'css/custom.css' %}"
/
>
<link
rel=
"stylesheet"
href=
"
//cdnjs.cloudflare.com/ajax/lib
s/semantic-ui/
2.2.2/
semantic.min.css"
/
>
<link
rel=
"icon"
type=
"image/png"
href=
"{% static 'img/logo-sm.png'%}"
sizes=
"32x32"
/>
</head>
...
...
kape/settings.py
View file @
d8e52d32
...
...
@@ -126,4 +126,12 @@ REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES'
:
[
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
]
}
\ No newline at end of file
}
GZIP_CONTENT_TYPES
=
(
'text/css'
,
'application/javascript'
,
'application/x-javascript'
,
'text/javascript'
)
\ No newline at end of file
webpack.prod.config.js
View file @
d8e52d32
...
...
@@ -14,7 +14,6 @@ module.exports = {
},
plugins
:
[
new
webpack
.
HotModuleReplacementPlugin
(),
new
BundleTracker
({
filename
:
'
./webpack-stats.json
'
}),
// removes a lot of debugging code in React
...
...
@@ -45,7 +44,7 @@ module.exports = {
new
webpack
.
IgnorePlugin
(
/^
\.\/
locale$/
,
[
/moment$/
]),
new
CompressionPlugin
({
asset
:
"
[path][query]
"
,
asset
:
"
[path]
.gz
[query]
"
,
algorithm
:
"
gzip
"
,
test
:
/
\.
js$|
\.
css$|
\.
html$/
,
threshold
:
10240
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment