question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It would be better if the build folder could be customized.

See original GitHub issue

Hi, Geelen, first of all thanks for your great job. I’m using react-snapshot in my project now, but I encountered a problem. Our website is an international site so I need to globalize it when generating static pages. My idea is to generate several build folders for different areas, such as build for English speaking area, build-cn for Chinese speaking area, etc.

When I look into the code, I found that the build folder is fixed into the code. I think we can add parameter in the cli command to determine the destination to build. The command looks like:

react-snapshot --dist build-cn

If possible I will make a PR.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
ch1ller0commented, Sep 24, 2018

Hi, I have encountered the same problem. Unfortunately, I could not find a solution in the docs. Had to find the issue manually) Any plans about updating the docs?

1reaction
geelencommented, Nov 7, 2017

Fixed and released as 1.3.0 👌

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize build folder #1354 - facebook/create-react-app
On a project I'm currently working on, we're using a file called BUILD that specifies build instructions for our microservices. and due to...
Read more >
Unable to customise the build directory for Qt Creator/qmake
The build directory is "specified" by starting qmake or cmake in the build directory. There's no point to setting it in the .pro...
Read more >
Deployment | Create React App
Deployment. npm run build creates a build directory with a production build of your app. Set up your favorite HTTP server so that...
Read more >
Customize your build - MSBuild - Microsoft Learn
Build.rsp file in or above your source directory will be applied to ... A better alternative for customizing all projects in a solution...
Read more >
Setting a custom build directory - next.config.js
You can specify a name to use for a custom build directory to use instead of .next . Open next.config.js and add the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found