-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Olm takes *ages* to webpack, and it doesn't compress well. So, serve it as a separate asset to the browser.
- Loading branch information
Showing
3 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env node | ||
|
||
// copy static files from node_modules to the vector directory | ||
// | ||
|
||
var fs = require('fs-extra'); | ||
|
||
function exists(f) { | ||
try { | ||
fs.statSync(f); | ||
return true; | ||
} catch(e) { | ||
return false; | ||
} | ||
} | ||
|
||
const olm = 'node_modules/olm/olm.js'; | ||
if (exists(olm)) { | ||
console.log("copy", olm, "-> vector"); | ||
fs.copySync(olm, 'vector/olm.js'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters