Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 07:38
    webpack-bot labeled #11105
  • Dec 06 03:03

    dependabot[bot] on npm_and_yarn

    (compare)

  • Dec 06 03:03
    dependabot[bot] closed #16485
  • Dec 06 03:03
    webpack-bot labeled #16545
  • Dec 06 03:03
    dependabot[bot] labeled #16545
  • Dec 06 03:03

    dependabot[bot] on npm_and_yarn

    chore(deps-dev): bump webpack-c… (compare)

  • Dec 06 03:02
    dependabot[bot] opened #16545
  • Dec 05 18:29
    piwysocki synchronize #16493
  • Dec 05 08:29

    sokra on main

    fix: avoid cross-realm objects fix: remove extra change fix: test fail and 4 more (compare)

  • Dec 05 08:28
    sokra closed #16500
  • Dec 05 03:06

    dependabot[bot] on npm_and_yarn

    (compare)

  • Dec 05 03:06
    dependabot[bot] closed #16511
  • Dec 05 03:06
    webpack-bot labeled #16536
  • Dec 05 03:06

    dependabot[bot] on npm_and_yarn

    chore(deps-dev): bump terser fr… (compare)

  • Dec 05 03:06
    dependabot[bot] labeled #16536
  • Dec 05 03:06
    dependabot[bot] opened #16536
  • Dec 05 03:04

    dependabot[bot] on npm_and_yarn

    chore(deps-dev): bump lint-stag… (compare)

  • Dec 05 03:04

    dependabot[bot] on npm_and_yarn

    (compare)

  • Dec 05 03:04
    dependabot[bot] closed #16521
  • Dec 05 03:04
    webpack-bot labeled #16535
John Marinelli
@johnmarinelli
@ShakurOo post relevant parts of your config
Kevin Pinto
@ShakurOo

Ok I found the problem... And it was me. I putted this entries in my webpack.config.js :

    externals: {
      'react': 'React',
      'react-dom': 'ReactDOM'
    },

This lines skip the node_modules importations and use global variables instead ^^"

thx @johnmarinelli
Chad Wilken
@chadwilken
I just upgraded to webpack 4 from 3 and I keep getting errors about my redux actions. I export them all from an index file that imports them using the import * as projectActions from './projects'. The error is "export 'addPhotosToReport' was not found in 'actions'". I have been Googling and tinkering but can't figure it out. Any ideas?
Chad Wilken
@chadwilken
Ahh it looks like you just do export * from './projects' now
Andrii Tsok
@AndriiTsok

Hello, community! I have a question about bundling dependency js library (it is not an NPM lib and it was bundled with webpack for browser <script>.. just a .js file) into my new library that I build using typescript.

How to define and inject this .js library into my final bundle?

Luke Kang
@kidkkr

TerserPlugin 2.0.0 has an issue with

        cache: true,
        parallel: true,
        sourceMap: true

option. FYI

Alexander Akait
@alexander-akait
@kidkkr issue? What issue?
Cache and parallel true by default
Luke Kang
@kidkkr
It omits node_modules (I guess) code.
Alexander Akait
@alexander-akait
What? No
We uglify you bundled code
Luke Kang
@kidkkr
Umm.. It minify codes like starts like this:
=n(19)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return rt}),n.d(t,"b",function(){return we}),n.d(t,"d",function(){return ot});var r=n(3),i=n.n(r),o=n(14),a=n.n(o),l=n(0),s=n.n(l),u=n(15),c=n(4),f=n(5),d=(n(27),n(17)),p=n(18),h=function(e,t){for(var n=
why is =n(19)}, presented, I don't know why
Alexander Akait
@alexander-akait
it is require('something')
We don't change in minify algorithm, just bump node version and set some options by default
Luke Kang
@kidkkr
Thank you! I will try
faligowski
@faligowski
I'm getting started with Webpack, but in the beginning have some troubles. When deleted [script src="...lodash" and push index.html into dist folder where is main.js, I have "Cannot GET /index.html"
I'm learning step by step with tutorial here
Alexander Akait
@alexander-akait
contentBase
faligowski
@faligowski
What exactly should I do?
Alexander Akait
@alexander-akait
put index.html in you root folder
faligowski
@faligowski
Doesn't work. Did everything like in the tutorial
Chris
@ipatch
@faligowski think you forgot to post the link to the tutorial your following, also i'd follow the docs posted on the official webpack site as opposed to following some third party tutorial that more than likely is out of date because things in webpack's world move fast ...really really fast

Question when using webpack and starting / stopping the server for whatever reason, more often then not I'm editing the actual webpack configuration file, and when i stop then start webpack will launch a window / tab in my default browser but will launch a completely new tab as opposed to reusing the existing open tab.

Has anyone developed a solution where if I stop a webpack dev server and have an existing tab that was associated with a running dev server instance that when i startup webpack again it will "intellegently" (and i use that term loosely) check to see if there is a tab open with the domain or socket that was being used and reconnect to the existing tab? it's quite tedious to close, open, shuffle tabs while working with configuration changes that require the dev server to stopped then started.

Alexander Akait
@alexander-akait
It is impossible to solve
browsers doesn't provide api for these actions
you can create custom script
but it will be platform depended
Chris
@ipatch

i don't "impossible to solve" is the correct answer but I don't work with webpack daily so i'm little rusty on certain things.

are saying there isn't a way to check / query open browser windows / tabs when launching webpack to check the DOM element that's related to hte address bar and see if there is an address that is related to the one that webpack is about to open?

are saying that's impossible?

because if you are, i have a difficult time believing that.
Alexander Akait
@alexander-akait
yes, it is very difficult and os depended
for example chrome on windows and chrome on linux works very difference
difference versions of chrome also work very difference
also some browsers can't give api for these
we can't check what you browsers have tab with url
Chris
@ipatch
sure windows and linux are completely different beasts but doesn't mean that webpack can't have OS specific code, ie. mac, windows, *nix
Alexander Akait
@alexander-akait
you say about communication with other program like browser
it is always os depended
Chris
@ipatch
are saying that querying the tab in a browser is impossible for a certain reason?
or are there no APIs written for such a feature?
Alexander Akait
@alexander-akait
Do you understand how a tab is opened?
Chris
@ipatch
yeah you click the new tab button 😉
Alexander Akait
@alexander-akait
no
it is click for you, but it is not click for other programs
Chris
@ipatch
right webpack is more than likely accessing an API exposed by the browser
no?
Alexander Akait
@alexander-akait
It is running child_process