@ozdao/prometheus-framework 0.2.165 → 0.2.166
Sign up to get free protection for your applications and to get access to all the features.
package/dist/builder.js
CHANGED
@@ -582,11 +582,12 @@ const PurgeCSSPlugin = require$$9$1;
|
|
582
582
|
const baseConfig$1 = webpack_config_base;
|
583
583
|
var webpack_config_client = (projectRoot) => {
|
584
584
|
const isProd2 = process.env.NODE_ENV === "production";
|
585
|
+
console.log("entry client path is", path$3.resolve(projectRoot, "src/entry-client.js"));
|
585
586
|
const config = {
|
586
587
|
mode: !isProd2 ? "development" : "production",
|
587
588
|
devtool: !isProd2 ? "inline-source-map" : "source-map",
|
588
589
|
entry: {
|
589
|
-
main: path$3.resolve(projectRoot, "src/entry-client.js")
|
590
|
+
main: !isProd2 ? [path$3.resolve("../utils/hot-reload.js"), path$3.resolve(projectRoot, "src/entry-client.js")] : path$3.resolve(projectRoot, "src/entry-client.js")
|
590
591
|
},
|
591
592
|
module: {
|
592
593
|
rules: []
|
package/dist/builder.mjs
CHANGED
@@ -559,11 +559,12 @@ const PurgeCSSPlugin = require$$9$1;
|
|
559
559
|
const baseConfig$1 = webpack_config_base;
|
560
560
|
var webpack_config_client = (projectRoot) => {
|
561
561
|
const isProd2 = process.env.NODE_ENV === "production";
|
562
|
+
console.log("entry client path is", path$3.resolve(projectRoot, "src/entry-client.js"));
|
562
563
|
const config = {
|
563
564
|
mode: !isProd2 ? "development" : "production",
|
564
565
|
devtool: !isProd2 ? "inline-source-map" : "source-map",
|
565
566
|
entry: {
|
566
|
-
main: path$3.resolve(projectRoot, "src/entry-client.js")
|
567
|
+
main: !isProd2 ? [path$3.resolve("../utils/hot-reload.js"), path$3.resolve(projectRoot, "src/entry-client.js")] : path$3.resolve(projectRoot, "src/entry-client.js")
|
567
568
|
},
|
568
569
|
module: {
|
569
570
|
rules: []
|
package/package.json
CHANGED
@@ -14,11 +14,15 @@ const baseConfig = require('./webpack.config.base');
|
|
14
14
|
module.exports = (projectRoot) => {
|
15
15
|
const isProd = process.env.NODE_ENV === "production";
|
16
16
|
|
17
|
+
console.log('entry client path is', path.resolve(projectRoot, "src/entry-client.js"))
|
18
|
+
|
17
19
|
const config = {
|
18
20
|
mode: !isProd ? "development" : "production",
|
19
21
|
devtool: !isProd ? "inline-source-map" : "source-map",
|
20
22
|
entry: {
|
21
|
-
main:
|
23
|
+
main: !isProd
|
24
|
+
? [path.resolve("../utils/hot-reload.js"), path.resolve(projectRoot, "src/entry-client.js")]
|
25
|
+
: path.resolve(projectRoot, "src/entry-client.js"),
|
22
26
|
},
|
23
27
|
module: {
|
24
28
|
rules: [],
|