Use new Hydrogen light-theme asset directly instead of legacy style.css (#13)

This commit is contained in:
Eric Eastwood 2022-06-07 20:21:56 -05:00 committed by GitHub
parent dff2209e56
commit cc958326ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -71,7 +71,11 @@ function installRoutes(app) {
app.get('/hydrogen-styles.css', async function (req, res) {
res.set('Content-Type', 'text/css');
res.sendFile(require.resolve('hydrogen-view-sdk/style.css'));
// We have to disable no-missing-require lint because it doesn't take into
// account `package.json`. `exports`, see
// https://github.com/mysticatea/eslint-plugin-node/issues/255
// eslint-disable-next-line node/no-missing-require
res.sendFile(require.resolve('hydrogen-view-sdk/assets/theme-element-light.css'));
});
// Our own archive app styles