|
hell yeah! webpack. it's just so... ...ugg can't even pretend with this thing. yeah it's pretty much garbage. better than browserify tho.
|
# ? Sep 26, 2017 01:49 |
|
|
# ? May 13, 2024 11:38 |
|
wtf is webpack
|
# ? Sep 26, 2017 02:09 |
|
*looks up what webpack is*
|
# ? Sep 26, 2017 02:25 |
|
webpack is hipster premature optimization bullshi
|
# ? Sep 26, 2017 02:30 |
|
Doc Block posted:wtf is webpack it's the javascript version of maven!
|
# ? Sep 26, 2017 02:54 |
|
old style js <script> <script> <script> <script> <script> <script> <script> <script> <script> <script> <script> and maybe a <style> <style> new style js <script> because webpack made that script and included some npmjs packages and probably ran babel its good
|
# ? Sep 26, 2017 09:37 |
|
akadajet posted:it's the javascript version of maven! actually it's the javascript version of maven's shade plugin i'm glad javascript is finally getting functionality that java's had for 10 years
|
# ? Sep 26, 2017 10:01 |
|
N.Z.'s Champion posted:old style js <script> <script> <script> <script> <script> <script> <script> <script> <script> <script> <script> and maybe a <style> <style> yeah, I like build tools. webpack's output isn't the easiest to debug tho. supported currently in chrome.... <script type="module"> can't wait for our in-browser js module future
|
# ? Sep 26, 2017 14:36 |
|
N.Z.'s Champion posted:old style js <script> <script> <script> <script> <script> <script> <script> <script> <script> <script> <script> and maybe a <style> <style> didn't realize webpack got rid of <style> blocks? akadajet posted:yeah, I like build tools. webpack's output isn't the easiest to debug tho. i think webpack can generate source maps or are you talking about something else?
|
# ? Sep 26, 2017 22:02 |
|
why would you write javascript when you could not do that
|
# ? Sep 26, 2017 22:09 |
|
There Will Be Penalty posted:didn't realize webpack got rid of <style> blocks? it does generate source maps, but I've always had problems with them. especially with code that uses async/await
|
# ? Sep 26, 2017 23:16 |
|
Dude I don't care how nice your lawn is we don't do racism in YOSPOS.
|
# ? Sep 26, 2017 23:32 |
|
There Will Be Penalty posted:didn't realize webpack got rid of <style> blocks? it can, from the server generated html so in your js module you might import './blah.css'; (css module) and then webpack can be configured to either 1. build a static file named blah.sha1.css and update the html to point at <link href="blah.sha1.css"> like a conventional css reference, and the browser downloads and parses that even if it doesn't use the styles, or 2. include the css as a string in your javascript bundle (so the server html just includes <script> but not <style> or <link>, which is what i was referring to) and when that javascript module loads it will use a css loader to dump the string of css into a <style> in the dom. the later option works really well with code splitting, helping avoid unnecessary work for the browser as it just won't load unused js or css (it will lazy load them instead) N.Z.'s Champion fucked around with this message at 00:11 on Sep 27, 2017 |
# ? Sep 27, 2017 00:03 |
|
I appreciate that webpack hasn't caused me any trouble after getting through the initial setup.
|
# ? Sep 27, 2017 06:55 |
|
Doc Block posted:wtf is webpack
|
# ? Sep 27, 2017 06:56 |
|
front end is a loving nightmare. want to try react? install 50,0000 dependencies using one of 3 terrible build tools
|
# ? Sep 27, 2017 07:26 |
|
just use facebook's boilerplate...code:
it handles webpack for you
|
# ? Sep 27, 2017 08:37 |
|
N.Z.'s Champion posted:just use facebook's boilerplate... i don't use facebook products
|
# ? Sep 27, 2017 14:23 |
|
lol if you javascript
|
# ? Sep 27, 2017 23:02 |
|
CRIP EATIN BREAD posted:lol if you javascript lol if you don't
|
# ? Sep 27, 2017 23:09 |
|
NoneMoreNegative posted:Dude I don't care how nice your lawn is we don't do racism in YOSPOS.
|
# ? Sep 28, 2017 05:28 |
|
I bought webpack merch
|
# ? Sep 28, 2017 17:04 |
|
wide stance posted:I bought webpack merch pics plz
|
# ? Sep 28, 2017 18:48 |
|
wide stance posted:I bought webpack merch was it something a little embarrassing like a mug or a legit cry for help like a shirt
|
# ? Sep 28, 2017 20:28 |
|
shaggar.js posted:lol if you don't
|
# ? Sep 28, 2017 20:31 |
|
i think grails and some other web frameworks have done similar things in their asset pipelines so yeah
|
# ? Sep 28, 2017 20:38 |
|
|
# ? May 13, 2024 11:38 |
|
wide stance posted:I bought webpack merch getting it for free at a conference is one thing
|
# ? Sep 29, 2017 07:57 |