by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:11
    sokra synchronize #7075
  • 21:11

    sokra on master

    5.0.0-rc.0 (compare)

  • 21:11

    sokra on v5.0.0-rc.0

    (compare)

  • 21:10
    sokra synchronize #7075
  • 21:10

    sokra on v5.0.0-beta.33

    (compare)

  • 21:10

    sokra on master

    5.0.0-beta.33 (compare)

  • 21:07
    sokra synchronize #7075
  • 21:07

    sokra on master

    improve warnings and errors han… add config.ignoreWarnings depre… Merge pull request #11506 from … (compare)

  • 21:07

    sokra on warnings

    (compare)

  • 21:07
    sokra closed #11506
  • 20:51
    webpack-bot labeled #11506
  • 20:40
    webpack-bot labeled #11507
  • 20:40
    sokra opened #11507
  • 20:39

    sokra on update

    update examples (compare)

  • 20:17
    sokra synchronize #7075
  • 20:16

    sokra on master

    chore(deps-dev): bump ts-loader… Merge pull request #11501 from … (compare)

  • 20:16

    sokra on npm_and_yarn

    (compare)

  • 20:16
    sokra closed #11501
  • 20:15
    webpack-bot labeled #11506
  • 20:15
    sokra opened #11506
Evilebot Tnawi
@evilebottnawi
Maybe better read how JavaScript work before shitting everything
Myles McNamara
@tripflex
and once you realize how many hours webpack saves you — you will laugh about 4 hours
Evilebot Tnawi
@evilebottnawi
@kwhat if you need help please provide more information, better gist or reproducible test repo, no configurations, no source code, nothing, so nobody can help
Alex Barker
@kwhat
Ive wasted at least 100 hours one its wonky packaging. If I put everythign in 1 giant file it works just fine
Myles McNamara
@tripflex
you really just have to spend the time to go through example webpack configs and the documentation and it will all be much clearer to figure out what is going on
Alex Barker
@kwhat
did you not see my paste?
Myles McNamara
@tripflex
i tried to quickly put together a webpack config file and realized i was shooting myself in the foot by not fully understanding how it works because when i had to debug it was VERY frustrating
Alex Barker
@kwhat
yah its super frustrating, you know what compounds that? the abstractions that sit in front of it and the total lack of decent documentation.
Evilebot Tnawi
@evilebottnawi
@kwhat documentation?
What is documentation help in your case?
Just say and i will do it
Myles McNamara
@tripflex
at the least we need your webpack config or details of it
Alex Barker
@kwhat
Well, for example, I am using laravel mix and I am simply trying to get jquery and datatables in two javascript files because they are quite large... Good fucking luck: https://github.com/JeffreyWay/laravel-mix/blob/master/docs/jquery-ui.md
Myles McNamara
@tripflex
i know your frustrated, but i can promise you more people will be interested in helping — if you’re not hostile about it :P
Evilebot Tnawi
@evilebottnawi
@kwhat do you run this in development or production?
Alex Barker
@kwhat
I am so frustrated with this, that I am literally going to quite doing webdevlopment after 25 years.
Myles McNamara
@tripflex
webpack config
maybe take a break for an hour or two lol
Alex Barker
@kwhat
right now it is development
Myles McNamara
@tripflex
come back with a clear head
Alex Barker
@kwhat
honestly taking a 2 hour break is not going to help me meet deadlines
Evilebot Tnawi
@evilebottnawi
@kwhat what is output?
Alex Barker
@kwhat
it outputs just fine
Myles McNamara
@tripflex
well if you want our help, bring down the hostility
Alex Barker
@kwhat
it cannot find .datatables
Myles McNamara
@tripflex
webpack config webpack config webpack config — that’s almost always the problem IMO
Evilebot Tnawi
@evilebottnawi
@kwhat databases is package on npm?
Alex Barker
@kwhat
yes
did you guys not see my paste?
Evilebot Tnawi
@evilebottnawi
What is error you got?
Peter Müller
@Munter
https://www.npmjs.com/package/datatables.net#npm says to initialize the import result with window and jquery
Alex Barker
@kwhat
jQuery.Deferred exception: $(...).DataTable is not a function TypeError: $(...).DataTable is not a function
Myles McNamara
@tripflex
Ahhhh i see
Alex Barker
@kwhat
@Munter I tried that as well
$ not found in my other file and when it is when i do some fancy autload in mix it still comes up with the same error
Evilebot Tnawi
@evilebottnawi
You can have two jquery
Alex Barker
@kwhat
import it twice?
will webpack not pack jquery into jquery.js and datatables.js ?
Evilebot Tnawi
@evilebottnawi
Do you use CMS? WordPress include own jquery
Alex Barker
@kwhat
No this is a laravel project which is another great example of more junk tooling
They use a webpack abstraction called mix
Peter Müller
@Munter
Alex Barker
@kwhat
@Munter yes, sir. I tried this .autoload({ jquery: ['$', 'jQuery', 'window.jQuery', 'window.$'], })
Peter Müller
@Munter
These are all artifacts from quite old ways of doing modules through the global scope. That does indeed require quite some extra legwork
Alex Barker
@kwhat
and this mix.webpackConfig({ plugins: [ new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery', 'window.jQuery': 'jquery', 'window.$': 'jquery' }), ] });
What is "old?" We talking < 3 months?
Peter Müller
@Munter
10+ years