Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:51
    dmattia review_requested #12827
  • 18:29
    webpack-bot labeled #12827
  • 18:29
    webpack-bot unlabeled #12827
  • 14:21
    webpack-bot labeled #12823
  • 11:11
    webpack-bot unlabeled #12822
  • 11:11
    webpack-bot labeled #12822
  • 01:27
    webpack-bot labeled #12828
  • 01:27
    chenxsan opened #12828
  • Mar 06 23:18
    webpack-bot labeled #12827
  • Mar 06 22:54
    webpack-bot labeled #12827
  • Mar 06 22:54
    dmattia opened #12827
  • Mar 06 19:58

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • Mar 06 19:58
    dependabot-preview[bot] closed #12824
  • Mar 06 19:58
    webpack-bot labeled #12825
  • Mar 06 19:58
    dependabot-preview[bot] review_requested #12825
  • Mar 06 19:58

    dependabot-preview[bot] on npm_and_yarn

    chore(deps-dev): bump eslint-pl… (compare)

  • Mar 06 19:58
    dependabot-preview[bot] labeled #12825
  • Mar 06 19:58
    dependabot-preview[bot] opened #12825
  • Mar 06 19:41

    dependabot-preview[bot] on npm_and_yarn

    (compare)

  • Mar 06 19:41
    dependabot-preview[bot] closed #12698
Øyvind Saltvik
@fivethreeo
You probably generate a extra chunk. try
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
})
Isaac Moore
@rmsy
Hi everyone -- I have a question I can't seem to figure out. I have what I believe is a pretty standard node.js / TypeScript configuration, but I would like to "force include" a dependency in my final bundle, despite it not being used in my codebase. Is this possible?
Øyvind Saltvik
@fivethreeo
Just add it to the entry, entry can be a list
Isaac Moore
@rmsy
@fivethreeo ah, thank you -- I will give that a shot!
Muhammad Kamal
@mkamalkayani
@rmsy ProvidePlugin could be another solution. https://webpack.js.org/plugins/provide-plugin/
@fivethreeo thanks for the suggestion.
Isaac Moore
@rmsy
Ah, nice -- thank you, @mkamalkayani!
Nimesh
@supnim
hello hello
does anyone have any idea on how i go about solving this:
image.png
image.png
its a css-loader err, around the '@import' feature and if i removed the "@" properities it builds. otherwise it breaks
any help would be wonderful :)
Muhammad Kamal
@mkamalkayani
The Error says "cannot resolve Components/theme.scss". So it seems the webpack is not configured to compile .scss files. To convert .scss to css you have to use sass-loader. https://webpack.js.org/loaders/sass-loader/
Nimesh
@supnim
thanks, ill try that now
good guess, sadly that didn't solve it. for context its a gatsby site build
anchepiece
@anchepiece_twitter
A general question, is it possible to run a plugin to build some output (concatenated files) before transpiling with babel-loader?
Devinora
@Devinora
who will tell you how to solve this problem? in short, after an error in the js file, webpack-server stops reloading.
https://stackoverflow.com/questions/65551999/webpack-5-dev-server-does-not-reload-on-file-changes
Ronn
@ronnross
Does anyone know how to tell babel-loader where to find the babe.config.js file? We have moved them into a configs folder.
dMedia5
@dMedia5
@ronnross check here for the babel option for configFile https://babeljs.io/docs/en/options#configfile
Ronn
@ronnross
Thanks! That is what I was looking for.
saidmammadov2005
@saidmammadov2005
Guys
How to hack instagram account?
Harsh Kaushik
@haarsh01
Hey , I am a beginner and want to do an open source contribution to Webpack in javascript language. Can anybody guide me on how to take further steps?
pavlovp
@pavlovp
Is it good project for beginners? :)
Øyvind Saltvik
@fivethreeo
Don't think so.
pavlovp
@pavlovp
I would read the whole git history from begining :D
Harsh Kaushik
@haarsh01
So should i not start the contribution if I am a beginner?
Øyvind Saltvik
@fivethreeo
I would try a easier project first.
pavlovp
@pavlovp
Or first just get understanding of the existing code maybe
BTW I'm playing a bit with vendor chunks, did separate React vendor chunk and trying to reuse it from the perspective of separate webpack build. Is it even possible? https://github.com/pavlovp/question-webpack-externals
Harsh Kaushik
@haarsh01
Can you suggest me any project?
Øyvind Saltvik
@fivethreeo
@DllPlugin?
@pavlovp DllPlugin
pavlovp
@pavlovp
I'll check that - thanks!
Øyvind Saltvik
@fivethreeo
@haarsh01 something you think should be better than it is, anything you have used that missed one feature that would make it great
@haarsh01 often when I am going to do a project, I start using some library and I end up not working on the project I should because that library has a bug that bugs me.
Nessim Btesh
@nesbtesh
=Hi
Hi
Does anyone know of a way to ignore the imports in webpack and only create one chunk
Nessim Btesh
@nesbtesh
ended up using this
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: process.env.BUILDFOR === "standalone" ? 1 : 20,
}),
Dmitrii Pikulin
@aspirisen
Hi, is it possible from Compiler get list of added plugins ?
Thomas Schaaf
@thomaschaaf
Hello! I am trying to write a webpack 5 config with two rules. Both of them call test with a function. This is a rather expensive call. I would have thought if the first call returned true that the next rules test function would not be called. This is not the case it calls both tests functions. Is this desired behavior or should I file a bug report? Is there a way to "bail early" so that other rules are not evaluated anymore?
Thomas Schaaf
@thomaschaaf
Okay maybe it's wanted behavior even though I don't understand why. Using oneOf works as I thought it should: https://github.com/webpack/webpack/blob/master/lib/rules/RuleSetCompiler.js#L120
larsivi
@larsivi:matrix.org
[m]
Hi, I am trying to optimize my application a bit, doing codesplitting and such. I have two entrypoints with their own html files, but the chunks they need are somewhat different. The webpack output shows me which chunks an entrypoint needs, but how can get the HtmlWebpackPlugin to reference those for the given entrypoint?
Ghost
@ghost~6044dc906da037398465d411
Hey... I've been beating my head against the wall all morning with this -- but I can't figure out how to stop my <link> / <style> getting loaded after <script> -- this causes the script to momentarily block the css leading in this case to a flash of transition on page. Obviously if I just reorder this manually it works fine! but how do I tell webpack to load my .css before my .js?
Nav Saini
@navxio
Hi! does the css loader(https://www.npmjs.com/package/css-loader) generate inline css in the generated webpack bundle file?
I saw that it does not take output as a param...