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