らんだむな記憶

blogというものを体験してみようか!的なー

platypus ビルド

mathigon の studio モジュール https://github.com/mathigon/studio がキャッシュの残存具合によっては挙動がおかしくなることもある様子。

mathjax 周りのキャッシュ削除

  • ~/.mathjax-cache

これが破損していると、mathjax.js#L12-L13 の処理で例外が飛んでしまい後続の処理が実行されない:

const cacheFile = path.join(process.env.HOME, '/.mathjax-cache');
const mathJaxStore = JSON.parse(readFile(cacheFile, '{}'));

npm 周りのキャッシュ削除

npm cache clean --force
rm -rf ~/.npm
rm -rf node_modules

platypus ビルド

rm ~/.mathjax-cache
npm run clean
npm run build

真っ白になる時

Chrome のデバッガで表示されていない要素を表示されるように?テコ入れする (以下は一例):

document.getElementById("step-8").className = "on";