@emulsify/core 3.3.1 → 3.3.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.
|
@@ -73,8 +73,10 @@ const pj = (...segs) => path.join(...segs.filter(Boolean));
|
|
|
73
73
|
const distSubpathForBase = (absFile, type) => {
|
|
74
74
|
const rel = path.relative(srcDir, absFile);
|
|
75
75
|
const dir = path.dirname(rel);
|
|
76
|
-
const
|
|
77
|
-
|
|
76
|
+
const ext = path.extname(rel);
|
|
77
|
+
const name = path.basename(rel, ext);
|
|
78
|
+
const outTypeDir = type === 'css' ? 'css' : 'js';
|
|
79
|
+
return SDC ? pj(dir, name) : pj(dir, outTypeDir, name);
|
|
78
80
|
};
|
|
79
81
|
|
|
80
82
|
/**
|