@linktr.ee/create-link-app 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,6 +147,9 @@ async function default_1(env, options) {
147
147
  new html_webpack_plugin_1.default({
148
148
  template: htmlTemplateFile,
149
149
  excludeChunks: [`LinkApp_${linkTypeId}`],
150
+ templateParameters: {
151
+ linkTypeSlug: linkTypeSlug,
152
+ },
150
153
  }),
151
154
  // Add progress plugin for better build feedback
152
155
  new webpack_1.ProgressPlugin({
@@ -10,7 +10,7 @@
10
10
  </head>
11
11
 
12
12
  <body>
13
- <div id="root"></div>
13
+ <div id="root" data-link-type-id="<%= linkTypeSlug %>"></div>
14
14
  </body>
15
15
 
16
- </html>
16
+ </html>
@@ -14,7 +14,7 @@
14
14
  </head>
15
15
 
16
16
  <body>
17
- <div id="root"></div>
17
+ <div id="root" data-link-type-id="<%= linkTypeSlug %>"></div>
18
18
  </body>
19
19
 
20
- </html>
20
+ </html>
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.0",
2
+ "version": "2.2.0",
3
3
  "commands": {
4
4
  "build": {
5
5
  "id": "build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/create-link-app",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Create a Link App on Linktr.ee.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Linktree",