Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 11 2020 06:42
    sb2nov edited #75
  • Oct 11 2020 00:20
    sb2nov opened #75
  • Sep 04 2020 18:33

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 04 2020 18:33
    dependabot[bot] closed #67
  • Sep 04 2020 18:33
    dependabot[bot] commented #67
  • Sep 04 2020 18:33
    dependabot[bot] labeled #74
  • Sep 04 2020 18:33
    dependabot[bot] opened #74
  • Sep 04 2020 18:33

    dependabot[bot] on npm_and_yarn

    Bump handlebars from 4.1.2 to 4… (compare)

  • Jul 20 2020 19:46
    larixer closed #73
  • Jul 20 2020 19:46
    larixer commented #73
  • Jul 20 2020 19:46
    larixer labeled #73
  • Jul 20 2020 14:02
    gromov-io commented #73
  • Jul 20 2020 13:34
    gromov-io opened #73
  • Jul 16 2020 20:49
    dependabot[bot] labeled #72
  • Jul 16 2020 20:49
    dependabot[bot] opened #72
  • Jul 16 2020 20:49

    dependabot[bot] on npm_and_yarn

    Bump lodash from 4.17.14 to 4.1… (compare)

  • Jun 06 2020 19:30
    dependabot[bot] labeled #71
  • Jun 06 2020 19:30
    dependabot[bot] opened #71
  • Jun 06 2020 19:30

    dependabot[bot] on npm_and_yarn

    Bump apollo-server-express from… (compare)

  • Jun 05 2020 11:46
    TeNNoX synchronize #69
Victor Vlasenko
@larixer
No, all the info is inside your index.{hash}.js.map and index.js
Joel Poloney
@joelpoloney
I've been playing around with it and have it showing up now but it's finding them, but now getting "Breakpoint set but not yet bound" on all my breakpoints :(
Joel Poloney
@joelpoloney
Aha. There we go
I also needed the --inspect on NodeHmrPlugin
Victor Vlasenko
@larixer
Yep
Joel Poloney
@joelpoloney
Thank you again 🙏
is it ok to leave the --inspect?
Victor Vlasenko
@larixer
yes
absolutely
Joel Poloney
@joelpoloney
ah ok great
I also need to add this to my webpack.config.js in the output map
devtoolModuleFilenameTemplate: 'file://[absolute-resource-path]'
Joel Poloney
@joelpoloney
(you may want to add that info to your Debugging readme)
Victor Vlasenko
@larixer
probably yes, I think in zen I used to have much more sophisticated devtoolModuleFilenameTemplate: for the backend
Joel Poloney
@joelpoloney
Ah... yeah I put this in just the webpack.config.js for the server folder. Works like a charm
Joel Poloney
@joelpoloney
Is there a recommended way of including or accessing static files? I'm trying to use https://github.com/i18next/i18next-xhr-backend for i18n serving and I would typically create a locales folder inside my public folder. But since I don't really have one, I'm not quite sure what's the recommended way of setting this up
I see in the build folder, there's an assets.json file that includes references to static images that I'm importing in my code. Is there a way to hook into that somehow?
Joel Poloney
@joelpoloney
Ah nevermind, it looks like there already is support for this in the webpack.config.js file I have. My locales folder needs to be a sibling of src, not included inside of it
Joel Poloney
@joelpoloney
Actually, it appears they're not actually being bundled in when I run yarn build. Any ideas why not? They're there when I serve locally with Webpack
Victor Vlasenko
@larixer
They are included into js bundle
If you want public folder, you can add CopyWebpackPlugin into webpack.config.js
Joel Poloney
@joelpoloney
Hm.. wondering how I can access them in the js bundle. I'm using the i18next-xhr-backend plugin to pull from a static file, which wasn't working
And hm, I just looked into all the JS files in the bundle... I don't see my strings anywhere 🤔
Victor Vlasenko
@larixer
If you want to access assets in the js bundle, the way to do it in a webpack project is to require them. If you want public folder - the way to do it is to use some webpack plugin, for example CopyWebpackPlugin, I don’t know what is i18next-xhr-backend and how it works
Essentially loads your i18n files automatically from a public folder
Victor Vlasenko
@larixer
Joel Poloney
@joelpoloney
yeah probably for the best. Thanks for the tip!