ptech-preset 1.4.3 → 1.4.4

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -404,9 +404,9 @@ function pluginCore(opts) {
404
404
  if (typeof mfMerged.shared === "undefined") {
405
405
  mfMerged.shared = DEFAULT_SHARED;
406
406
  }
407
- const command = api?.context?.command;
408
- console.log("command:", command);
409
- const isBuild = command === "build";
407
+ const action = api.context.action;
408
+ console.log("command:", action);
409
+ const isBuild = action === "build";
410
410
  const isDev = !isBuild;
411
411
  if (cssInjection !== "none") {
412
412
  const cssAbs = path3.resolve(root, cssEntry);
@@ -523,11 +523,7 @@ function pluginCore(opts) {
523
523
  const fallbackCdn = `${CDN_BASE}${pkgSafe}/`;
524
524
  if (isBuild) {
525
525
  config.output.assetPrefix = fallbackCdn;
526
- console.log("BUILD");
527
- console.log("config.output.assetPrefix", config.output.assetPrefix);
528
526
  } else {
529
- console.log("DEV");
530
- console.log("config.output.assetPrefix", config.output.assetPrefix);
531
527
  config.output.assetPrefix = "/";
532
528
  }
533
529
  return config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ptech-preset",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Auto Module.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",