innetjs 2.4.1-beta.0 → 2.4.2
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/_virtual/_rollup-plugin-process-env.js +1 -1
- package/_virtual/_rollup-plugin-process-env.mjs +1 -1
- package/bin/innet +11 -4
- package/index.js +10 -3
- package/index.mjs +10 -3
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -319,7 +319,10 @@ class InnetJS {
|
|
|
319
319
|
publicPath: this.baseUrl,
|
|
320
320
|
}), styles__default["default"]({
|
|
321
321
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
322
|
-
url:
|
|
322
|
+
url: {
|
|
323
|
+
inline: false,
|
|
324
|
+
publicPath: `${this.baseUrl}assets`,
|
|
325
|
+
},
|
|
323
326
|
plugins: [autoprefixer__default["default"]()],
|
|
324
327
|
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
325
328
|
sourceMap: this.sourcemap,
|
|
@@ -423,7 +426,10 @@ class InnetJS {
|
|
|
423
426
|
publicPath: this.baseUrl,
|
|
424
427
|
}), styles__default["default"]({
|
|
425
428
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
426
|
-
url:
|
|
429
|
+
url: {
|
|
430
|
+
inline: false,
|
|
431
|
+
publicPath: `${this.baseUrl}assets`,
|
|
432
|
+
},
|
|
427
433
|
plugins: [autoprefixer__default["default"]()],
|
|
428
434
|
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
429
435
|
sourceMap: true,
|
|
@@ -746,7 +752,8 @@ class InnetJS {
|
|
|
746
752
|
const server = httpsUsing ? https__default["default"].createServer({ key, cert }, app) : http__default["default"].createServer(app);
|
|
747
753
|
let port = this.port;
|
|
748
754
|
const listener = () => {
|
|
749
|
-
|
|
755
|
+
const baseUrl = this.baseUrl === '/' ? '' : this.baseUrl;
|
|
756
|
+
console.log(`${chalk__default["default"].green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port}${baseUrl} and http${httpsUsing ? 's' : ''}://${address__default["default"].ip()}:${port}${baseUrl}`);
|
|
750
757
|
};
|
|
751
758
|
server.listen(port, listener);
|
|
752
759
|
server.on('error', (e) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -784,7 +791,7 @@ class InnetJS {
|
|
|
784
791
|
}
|
|
785
792
|
|
|
786
793
|
(function () {
|
|
787
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.4.
|
|
794
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.4.2"};
|
|
788
795
|
if (typeof process === 'undefined') {
|
|
789
796
|
globalThis.process = { env: env };
|
|
790
797
|
} else if (process.env) {
|
package/index.js
CHANGED
|
@@ -209,7 +209,10 @@ class InnetJS {
|
|
|
209
209
|
publicPath: this.baseUrl,
|
|
210
210
|
}), styles__default["default"]({
|
|
211
211
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
212
|
-
url:
|
|
212
|
+
url: {
|
|
213
|
+
inline: false,
|
|
214
|
+
publicPath: `${this.baseUrl}assets`,
|
|
215
|
+
},
|
|
213
216
|
plugins: [autoprefixer__default["default"]()],
|
|
214
217
|
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
215
218
|
sourceMap: this.sourcemap,
|
|
@@ -313,7 +316,10 @@ class InnetJS {
|
|
|
313
316
|
publicPath: this.baseUrl,
|
|
314
317
|
}), styles__default["default"]({
|
|
315
318
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
316
|
-
url:
|
|
319
|
+
url: {
|
|
320
|
+
inline: false,
|
|
321
|
+
publicPath: `${this.baseUrl}assets`,
|
|
322
|
+
},
|
|
317
323
|
plugins: [autoprefixer__default["default"]()],
|
|
318
324
|
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
319
325
|
sourceMap: true,
|
|
@@ -636,7 +642,8 @@ class InnetJS {
|
|
|
636
642
|
const server = httpsUsing ? https__default["default"].createServer({ key, cert }, app) : http__default["default"].createServer(app);
|
|
637
643
|
let port = this.port;
|
|
638
644
|
const listener = () => {
|
|
639
|
-
|
|
645
|
+
const baseUrl = this.baseUrl === '/' ? '' : this.baseUrl;
|
|
646
|
+
console.log(`${chalk__default["default"].green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port}${baseUrl} and http${httpsUsing ? 's' : ''}://${address__default["default"].ip()}:${port}${baseUrl}`);
|
|
640
647
|
};
|
|
641
648
|
server.listen(port, listener);
|
|
642
649
|
server.on('error', (e) => tslib.__awaiter(this, void 0, void 0, function* () {
|
package/index.mjs
CHANGED
|
@@ -174,7 +174,10 @@ class InnetJS {
|
|
|
174
174
|
publicPath: this.baseUrl,
|
|
175
175
|
}), styles({
|
|
176
176
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
177
|
-
url:
|
|
177
|
+
url: {
|
|
178
|
+
inline: false,
|
|
179
|
+
publicPath: `${this.baseUrl}assets`,
|
|
180
|
+
},
|
|
178
181
|
plugins: [autoprefixer()],
|
|
179
182
|
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
180
183
|
sourceMap: this.sourcemap,
|
|
@@ -278,7 +281,10 @@ class InnetJS {
|
|
|
278
281
|
publicPath: this.baseUrl,
|
|
279
282
|
}), styles({
|
|
280
283
|
mode: this.cssInJs ? 'inject' : 'extract',
|
|
281
|
-
url:
|
|
284
|
+
url: {
|
|
285
|
+
inline: false,
|
|
286
|
+
publicPath: `${this.baseUrl}assets`,
|
|
287
|
+
},
|
|
282
288
|
plugins: [autoprefixer()],
|
|
283
289
|
autoModules: this.cssModules ? (id) => !id.includes('.global.') : true,
|
|
284
290
|
sourceMap: true,
|
|
@@ -601,7 +607,8 @@ class InnetJS {
|
|
|
601
607
|
const server = httpsUsing ? https.createServer({ key, cert }, app) : http.createServer(app);
|
|
602
608
|
let port = this.port;
|
|
603
609
|
const listener = () => {
|
|
604
|
-
|
|
610
|
+
const baseUrl = this.baseUrl === '/' ? '' : this.baseUrl;
|
|
611
|
+
console.log(`${chalk.green('➤')} Started on http${httpsUsing ? 's' : ''}://localhost:${port}${baseUrl} and http${httpsUsing ? 's' : ''}://${address.ip()}:${port}${baseUrl}`);
|
|
605
612
|
};
|
|
606
613
|
server.listen(port, listener);
|
|
607
614
|
server.on('error', (e) => __awaiter(this, void 0, void 0, function* () {
|