@linktr.ee/create-link-app 1.0.4 → 1.0.5

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.
package/README.md CHANGED
@@ -94,10 +94,11 @@ Start development server for Link App project
94
94
 
95
95
  ```
96
96
  USAGE
97
- $ create-link-app dev [-p <value>] [--https]
97
+ $ create-link-app dev [-p <value>] [--https] [--host <value>]
98
98
 
99
99
  FLAGS
100
100
  -p, --port=<value> [default: 3000] Development server listening port
101
+ --host=<value> [default: localhost] Hostname
101
102
  --https Use HTTPS for development server
102
103
 
103
104
  DESCRIPTION
@@ -18,7 +18,9 @@ class Dev extends base_1.default {
18
18
  },
19
19
  hot: false,
20
20
  https: flags.https,
21
+ host: flags.host,
21
22
  port: flags.port,
23
+ allowedHosts: 'all',
22
24
  }, (0, webpack_1.default)(config));
23
25
  await devServer.start();
24
26
  }
@@ -35,4 +37,8 @@ Dev.flags = {
35
37
  https: core_1.Flags.boolean({
36
38
  description: 'Use HTTPS for development server',
37
39
  }),
40
+ host: core_1.Flags.string({
41
+ description: 'Hostname',
42
+ default: 'localhost',
43
+ }),
38
44
  };
@@ -115,8 +115,8 @@ async function default_1(env, options) {
115
115
  };
116
116
  config.plugins.push(new mini_css_extract_plugin_1.default());
117
117
  config.devServer = {
118
+ host: '0.0.0.0',
118
119
  allowedHosts: 'all',
119
- historyApiFallback: true,
120
120
  };
121
121
  }
122
122
  if (env === 'production') {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.4",
2
+ "version": "1.0.5",
3
3
  "commands": {
4
4
  "build": {
5
5
  "id": "build",
@@ -141,6 +141,13 @@
141
141
  "type": "boolean",
142
142
  "description": "Use HTTPS for development server",
143
143
  "allowNo": false
144
+ },
145
+ "host": {
146
+ "name": "host",
147
+ "type": "option",
148
+ "description": "Hostname",
149
+ "multiple": false,
150
+ "default": "localhost"
144
151
  }
145
152
  },
146
153
  "args": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/create-link-app",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Create a Link App on Linktr.ee.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Linktree",