-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove React from static scripts, fix Prask task accordingly #1118
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1118 +/- ##
=======================================
Coverage 80.85% 80.85%
=======================================
Files 162 162
Lines 6969 6969
=======================================
Hits 5635 5635
Misses 1334 1334 Continue to review full report at Codecov.
|
Všimol som si, že React používa ešte nejaký |
To funguje. Je to dynamické, preto je ten element prázdny.
…On Mon, 22 Jan 2018, 06:59 Jakub Šimo, ***@***.***> wrote:
Všimol som si, že React používa ešte nejaký Tip of the day. Nebudem
klamať, nikdy som si nič také nevšimol na stránke a je to momentálne
prázdny element na vrchu noviniek. Plánuje sa s tým niečo robiť?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#1118 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABH4NzkO0NznzNroCFhAGIpRQ3ZGR3oLks5tNDHKgaJpZM4RmBb0>
.
|
To chápem, že to je dynamické a ten ReactDOM to tam má vyrenderovať, ale nič sa tam nezobrazuje, ani ako pre admina, ani v incognito, usera som neskúšal. A stále platí ten point, že by to malo mať React so sebou v bundli, keďže to je len na jednom mieste. |
To preto že si všetko videl. Ale jeden som ti označil ako neprecitany tak
by si tam teraz mal niečo vidieť.
…On Mon, 22 Jan 2018, 09:52 Jakub Šimo, ***@***.***> wrote:
To chápem, že to je dynamické a ten ReactDOM to tam má vyrenderovať, ale
nič sa tam nezobrazuje, ani ako pre admina, ani v incognito, usera som
neskúšal.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#1118 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABH4N8od2fWEZUE-s0OSOG4alPhQFg2Fks5tNFprgaJpZM4RmBb0>
.
|
Ok, makes sense, súhlasíš s tým, že by to malo byť bundlenuté? Ak áno, dám ti PR na django-tips. |
Pokojne.
…On Mon, 22 Jan 2018, 10:03 Jakub Šimo, ***@***.***> wrote:
Ok, makes sense, súhlasíš s tým, že by to malo byť bundlenuté? Ak áno, dám
ti PR na django-tips.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#1118 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABH4Nxh1OeGV--0Iy2DKaQ3d2R1FGF1Wks5tNFzVgaJpZM4RmBb0>
.
|
Ešte lepšie, ak by sa dalo, že vôbec ten element spolu s tým bundlom nebudú includenuté ak už nemáš tips. |
{ | ||
"name": "prask_questions", | ||
"version": "1.0.0", | ||
"description": "compile by: ``` babel --presets es2015,react --watch src/ --out-dir lib/ ```", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preco je v description
napisane nieco, co vyzera uplne odlisne ako commandy v scripts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, to je pozostatok z toho čo tam Prefix/Sysel porobili, ušlo mi to.
ten prekompilovany subor z prasku sa filenamom tvari ako minifikovany, ale v skutocnosti minifikovany nie je.... nedalo by sa s tym nieco urobit? na rozdiel od toho fontu toto je 1.7MB :D |
@black3r My bad, fixed. Má to 203kb minifikované :) // EDIT |
@@ -34,8 +34,6 @@ | |||
<![endif]--> | |||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> | |||
<script src="{% static "js/ie10-viewport-bug-workaround.js" %}"></script> | |||
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react.min.js" type="text/javascript"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Toto teda nepotrebujeme uz?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nie, je to includenuté v tom js bundle-y. Čo mi pripomína, že možno by som tam mohol popchať všetky tie js veci do toho. Pozriem sa na to v stredu poobede/štvrtok.
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': debug ? JSON.stringify('development') : JSON.stringify('production') | ||
}), | ||
new webpack.optimize.ModuleConcatenationPlugin(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toto aj nieco robi, ked v babel-i nemas nakonfigurovane "modules": false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nie, máš pravdu. Config ešte trochu refine-nem, keď sa mi podarí/niekto mi pomôže s tými django-tips a tu sa môže použiť ten istý prakticky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co potrebujes s tymi django-tips?
Toto je v akom stave? |
Neviem ako testnúť tú Prask úlohu na stránke, rady sú vítané.