Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:59
    webpack-bot labeled #9855
  • 00:42

    dependabot-preview[bot] on npm_and_yarn

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

  • 00:42
    webpack-bot labeled #9855
  • 00:42
    dependabot-preview[bot] labeled #9855
  • 00:42
    dependabot-preview[bot] opened #9855
  • Oct 17 19:23
    sokra synchronize #7075
  • Oct 17 19:23

    sokra on master

    Remove trailing spaces from ban… Merge pull request #9756 from M… (compare)

  • Oct 17 19:22
    sokra closed #9756
  • Oct 17 19:05
    webpack-bot labeled #9839
  • Oct 17 19:05
    webpack-bot unlabeled #9839
  • Oct 17 18:46
    sokra reopened #9851
  • Oct 17 18:46
    sokra closed #9851
  • Oct 17 18:46
    webpack-bot labeled #9851
  • Oct 17 18:46
    webpack-bot unlabeled #9851
  • Oct 17 13:57
    webpack-bot labeled #9851
  • Oct 17 13:43
    sokra synchronize #7075
  • Oct 17 13:42

    sokra on master

    fix badly chosen max fill rate … fix test cases for new module o… Merge pull request #9849 from w… (compare)

  • Oct 17 13:42

    sokra on determinitic-ids-gzip

    (compare)

  • Oct 17 13:42
    sokra closed #9849
  • Oct 17 13:23
    webpack-bot labeled #9851
harshit786
@harshit786
is the pages and I am running directly is it something wrong I am doing as I am novoice to webpack
now in the src folder I do changes in main.scss nothing
happened
Here is the main.scss
deAtog
@deAtog
@harshit786 what are you using to serve your files? Webpack's dev server?
harshit786
@harshit786
I am trying to rebuild webpack but it is not working
we are running directly
just like putting in xampp server
deAtog
@deAtog
Ah.. well there you go..
@harshit786 I suspect your issue is not webpack, but Apache on Windows.
harshit786
@harshit786
I think scripts are
running
in package.json
Runnning without apache
still does not solve problem
Rogan Louwrens
@hallucinarium
@deAtog Any chance you know how to get the hashed filename of a font imported in a CSS file?
I know with image imports in a JS file the import returns the path. I just have no idea how that translates to something imported in a CSS file.
deAtog
@deAtog
@urbanmichal Admittedly, about a week after I started learning how to configure Webpack.. I switched to using Encore as it does almost everything I needed. That said, if memory serves me right, I think you may have to use the url-loader along with your other CSS loaders to fix paths in CSS.
John Marinelli
@johnmarinelli
@deAtog we also use Symfony + Webpack, but not Encore. i am wondering, how has your experience been? is your project large?
deAtog
@deAtog
@johnmarinelli Symfony + Webpack Encore has been rather easy to use. The project I'm currently working on is not very large.. about 5 or so pages but I haven't had any major issues using Encore.
@johnmarinelli My biggest complaint about Encore is that once I started using it.. I wanted to use it for more than just web outputs.. and sadly it currently lacks the ability to configure the target output. I'm currently using an internal fork of Encore that I've modified for this purpose..
deAtog
@deAtog
@johnmarinelli Most issues I've run into are more to do with how Webpack functions rather than anything else. E.g. I find Webpack's externals option to be very lacking as it merely creates a wrapper around globally defined variables and provides no mechanism to actually include external libraries from a CDN. Thus, when the global variable is not defined it throws an error.
deAtog
@deAtog
@harshit786 I think this is a case where you are simply using Webpack wrong. Just because you can reference Webpack outputs from the dist folder doesn't mean you should. Doing so is often discouraged because it creates a client-side caching issue. I.e. the browser caches the page and it's assets separately. However, if the page has not been modified, the browser may not check if the assets have been. If you want to continue using static pages.. then I would recommend making your html files your Webpack entrypoints and using the html-loader in combination with the extract-loader. Encore doesn't support processing of HTML files so you would have tell it to load the additional loaders required to do so.
Rogan Louwrens
@hallucinarium
Can anybody tell me how to get the hashed filename of a font imported in a CSS file? This issue is infuriating me
deAtog
@deAtog
@hallucinarium Why not use Encore since you are already using Symfony?
Rogan Louwrens
@hallucinarium
@deAtog Oh, I'm not using Symfony. I'm building a Gridsome site, which afaik uses vanilla webpack?
deAtog
@deAtog
@hallucinarium Sorry, my mistake.. mistook you for someone else..
deAtog
@deAtog
@hallucinarium have you tried using the url-loader?
Rogan Louwrens
@hallucinarium
Yes, I'm using the url-loader. I just don't know which variable holds the path of the font after import
Jake
@jakeacooley
I'm getting a strange Webpack issue where a file is being imported and it's not being recognized within the file. Whenever I refresh it is imported and read perfectly fine. Could this be a code-splitting issue?
John Marinelli
@johnmarinelli
@deAtog I see, thanks for the input. funny that you bring the externals issue up - i have been configuring our webpack config and have been spending a lot of time with the externals option (and this plugin https://github.com/liady/webpack-node-externals), so i can cherry-pick which modules i want to include for a given entry point
my company was considering migrating to Encore but we have a 10 year old project with lots of code, so we are continuing with our custom config
@jakeacooley can you post a config. what do you mean "when i refresh" - you refresh the page?
is this file being dynamically imported?
Stephen Hendricks
@z1haze
when running webpack --mode=development and then checking process.env.WEBPACK_MODE in the webpack.config.js is always undefined? how do we actually use that flag to do things in the config?
Chris
@ipatch
hello, i'm using style-loader with css-loader and i'm trying to add some styles to a class I've added via JS using the DOM, and have imported my styles.css within my index.js but i'm still nto seeing the styles being applied to my custom class. however if i change the style of something like body then the style is applied.
sdyalor
@sdyalor
.
Chris
@ipatch
ohh wow my webpack is hashing my classnames
sdyalor
@sdyalor
I'm new in webpack
;c
Hope i could help you in a couple of years
but there is a property in configuration file
Captura.PNG
Răzvan Idomir
@tsuby
Hi there, is there a way to simulate '[contenthash]' in webpack 3? I need it to basically have a library exposed with a static file name (where the '[contenthash]' would function as a lib version)
For just one file, for the others I still need to use '[hash]'
Peter Müller
@Munter
It's just a string, you can put anything in there. For example libname.${require('./package.json').version}.js
Erwann Mest
@kud
hey