Title: Custom build settings · Issue #20 · glook/webpack-typescript-react · GitHub
Open Graph Title: Custom build settings · Issue #20 · glook/webpack-typescript-react
X Title: Custom build settings · Issue #20 · glook/webpack-typescript-react
Description: I've got a react component I'd like to build to and serve from another folder other than src, let´s say the following is my project folder structure: . ├── ... ├── docs # Serve files on /docs folder instead of /src │ └── build # Build th...
Open Graph Description: I've got a react component I'd like to build to and serve from another folder other than src, let´s say the following is my project folder structure: . ├── ... ├── docs # Serve files on /docs folde...
X Description: I've got a react component I'd like to build to and serve from another folder other than src, let´s say the following is my project folder structure: . ├── ... ├── docs # Serve files on /do...
Opengraph URL: https://github.com/glook/webpack-typescript-react/issues/20
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Custom build settings","articleBody":"I've got a react component I'd like to build to and serve from another folder other than `src`, let´s say the following is my project folder structure:\r\n\r\n .\r\n ├── ...\r\n ├── docs # Serve files on /docs folder instead of /src\r\n │ └── build # Build the contents of /src to /docs/build\r\n │ ├── index.js \r\n │ ├── api.tsx \r\n │ ├── index.tsx \r\n │ ├── index.html\r\n ├── webpack\r\n ├── src # Project files\r\n └── ...\r\n\r\nWhat I'm trying to achieve is to have webpack build the contents of `/src` (which is a React Component) to `/docs/build` and then serve the `/docs` folder instead of `/src`. Within the `/docs` folder, **index.html** loads **index.js** from `/docs/build` folder...\r\n\r\nDoes anyone have any directions on how to achieve such a config? I'd like to keep the default settings as is, but create an alternate webpack config and a package.json script such as \"build-serve-docs\" as a separated command.\r\n\r\nThanks in advance.","author":{"url":"https://github.com/monecchi","@type":"Person","name":"monecchi"},"datePublished":"2022-06-04T15:20:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/20/webpack-typescript-react/issues/20"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3aade650-af88-a5ee-a3a1-8bb8fbeb4b97 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91FE:20A349:E63803:13DAC9D:6A4BE6B0 |
| html-safe-nonce | 22c2a6b3f69cdcf084795c7812aa3ba56e203e91e72eb9184de8641686b45ded |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUZFOjIwQTM0OTpFNjM4MDM6MTNEQUM5RDo2QTRCRTZCMCIsInZpc2l0b3JfaWQiOiI0MjYxNDkzNTMzODU5MTEyNjI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c2d21367ee0e1e2455039d0cb81231d369a66b0126f1f7eaf7d60dd89087b5bd |
| hovercard-subject-tag | issue:1260800869 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/glook/webpack-typescript-react/20/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43301862e2dc8e97c36f996a2fc0ff6230422291554ee985ec82cf56d607332a/glook/webpack-typescript-react/issues/20 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43301862e2dc8e97c36f996a2fc0ff6230422291554ee985ec82cf56d607332a/glook/webpack-typescript-react/issues/20 |
| og:image:alt | I've got a react component I'd like to build to and serve from another folder other than src, let´s say the following is my project folder structure: . ├── ... ├── docs # Serve files on /docs folde... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | monecchi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0f5d3ba365b3985d75c32a5957c8635488d58dcf027ae6ae958eee7edaa306a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/glook/webpack-typescript-react git https://github.com/glook/webpack-typescript-react.git |
| octolytics-dimension-user_id | 545998 |
| octolytics-dimension-user_login | glook |
| octolytics-dimension-repository_id | 191167410 |
| octolytics-dimension-repository_nwo | glook/webpack-typescript-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 191167410 |
| octolytics-dimension-repository_network_root_nwo | glook/webpack-typescript-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f24da9b76b42d77b0bb458f810509565e9ba5f1a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width