You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using the developer rig and have used this as your basis for your extension, please ignore the below steps- the developer rig has taken care of it for you!
22
22
23
+
### Please note that HTTPS only works with the Developer Rig version 1.1.4 and above.
24
+
25
+
If you are using a version below that, please either upgrade or disable HTTP. To do so:
26
+
27
+
1. Go into `/webpack.config.js`
28
+
2. Update `config.devServer.https = true` to `config.devServer.https = false`
29
+
3. On the [Twitch Developer Console](https://dev.twitch.tv/console), make sure to update the Asset Hosting path for your extension to use http instead.
30
+
4. Refresh your manifest in the Developer Rig and recreate your views.
31
+
23
32
### Local Development
24
33
25
34
If you're wanting to develop this locally, use the below instructions.
@@ -34,10 +43,9 @@ Next, do the following:
34
43
35
44
1. Change directories into the cloned folder.
36
45
2. Run `yarn install` to install all prerequisite packages needed to run the template.
37
-
3. Run `yarn cert` to generate the needed certificates. This allows the server to be run over HTTPS vs. HTTP.
38
-
4. Run `yarn start` to run the sample. If everything works, you should be be able to go to the developer rig, create a panel view, and see `Hello world!`
46
+
3. Run `yarn start` to run the sample. If everything works, you should be be able to go to the developer rig, create a panel view, and see `Hello world!`
39
47
40
-
## Usage
48
+
## Building Production Files
41
49
42
50
To build your finalized React JS files, simply run `yarn build` to build the various webpacked files. These files will use code splitting to only load in the libraries needed for that view, while still allowing you to reuse components.
43
51
@@ -78,14 +86,6 @@ For a small demonstration of the class, see the App compoonent.
78
86
79
87
The file structure in the template is laid out with the following:
80
88
81
-
### bin
82
-
83
-
The `/bin` folder holds the cert generation script.
84
-
85
-
### conf
86
-
87
-
The `/conf` folder holds the generated certs after the cert generation script runs. If this folder gets emptied, rerun `yarn cert`.
88
-
89
89
### dist
90
90
91
91
`/dist` holds the final JS files after building. You can simply zip up the contents of the folder to upload to Twitch to move to Hosted Test.
0 commit comments