mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Add comment for srcPath
This commit is contained in:
parent
e8dff6d16b
commit
5d764a9f0e
@ -60,6 +60,14 @@ parameters
|
|||||||
.option("--override-css <main css file>", "pass in an alternative main css file")
|
.option("--override-css <main css file>", "pass in an alternative main css file")
|
||||||
parameters.parse(process.argv);
|
parameters.parse(process.argv);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* We use Snowpack to handle the translation of TypeScript
|
||||||
|
* into JavaScript. We thus can't bundle files straight from
|
||||||
|
* the src directory, since some of them are TypeScript, and since
|
||||||
|
* they may import Node modules. We thus bundle files after they
|
||||||
|
* have been processed by Snowpack. This function returns paths
|
||||||
|
* to the files that have already been pre-processed in this manner.
|
||||||
|
*/
|
||||||
function srcPath(src) {
|
function srcPath(src) {
|
||||||
return path.join(snowpackOutDir, 'src', src);
|
return path.join(snowpackOutDir, 'src', src);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user