mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix missing type="module" when js files are concatenated #2581
This commit is contained in:
parent
a2281edc7a
commit
f00d2800b5
1 changed files with 3 additions and 2 deletions
|
|
@ -624,7 +624,8 @@ class FrontEndFileHandler extends Handler
|
||||||
{
|
{
|
||||||
$url .= '?t=' . filemtime($file->fileFullPath);
|
$url .= '?t=' . filemtime($file->fileFullPath);
|
||||||
}
|
}
|
||||||
$result[] = array('file' => $url);
|
$attrs = empty($file->jstype) ? '' : (' type="' . $file->jstype . '"');
|
||||||
|
$result[] = array('file' => $url, 'attrs' => $attrs);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -642,7 +643,7 @@ class FrontEndFileHandler extends Handler
|
||||||
Rhymix\Framework\Storage::write(\RX_BASEDIR . $concat_filename, $concat_content);
|
Rhymix\Framework\Storage::write(\RX_BASEDIR . $concat_filename, $concat_content);
|
||||||
}
|
}
|
||||||
$concat_filename .= '?t=' . filemtime(\RX_BASEDIR . $concat_filename);
|
$concat_filename .= '?t=' . filemtime(\RX_BASEDIR . $concat_filename);
|
||||||
$result[] = array('file' => \RX_BASEURL . $concat_filename);
|
$result[] = array('file' => \RX_BASEURL . $concat_filename, 'attrs' => '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue