Fakultas Ilmu Komputer UI

Commit 14f66882 authored by Zamil Majdy's avatar Zamil Majdy
Browse files

[#140382397] #5 move zip to nginx

parent d946306d
......@@ -13,10 +13,6 @@
<body>
<div id="react-app"></div>
{% if is_devserver %}
{% render_bundle 'main' 'js' 'DEFAULT' attrs='async defer="true"' %}
{% else %}
{% render_bundle 'main' 'js.gz' 'DEFAULT' attrs='async defer="true"' %}
{% endif %}
{% render_bundle 'main' 'js' 'DEFAULT' attrs='async defer="true"' %}
</body>
</html>
......@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "webpack --config webpack.prod.config.js --progress --colors",
"build-production": "webpack --config webpack.prod.config.js --progress --colors && sed -i 's/js/js.gz/g' webpack-stats.json",
"build-production": "webpack -p --config webpack.prod.config.js --progress --colors",
"webpack": "webpack -p --progress --display-error-details --config webpack.config.js --watch",
"watch": "node server.js",
"karma": "karma start"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment