Skip to content

Commit 7f11fc2

Browse files
committed
change the output directory for css layer. fixes #23
1 parent 6324bdc commit 7f11fc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: css.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ define([
243243

244244
loadCss.onLayerEnd = function (write, data) {
245245
if (data.name && data.path) {
246-
var dest = data.path.replace(/^(.*\/)?(.*)$/, "$1css/$2.css");
247-
var destMid = data.name.replace(/^(.*\/)?(.*)\.js$/, "$1css/$2.css");
246+
var dest = data.path.replace(/\.js$/, ".css");
247+
var destMid = data.name + ".css";
248248

249249
// Write layer file
250250
var success = buildFunctions.writeLayer(writePluginFiles, dest, loadList);

0 commit comments

Comments
 (0)