Sha256: 76760b240f00d70514ca9cf19ce02644ee1a35b14371f516fd6d5fdf39500273
Contents?: true
Size: 628 Bytes
Versions: 37
Compression:
Stored size: 628 Bytes
Contents
const { execSync } = require("child_process"); const themeStylesheetsDir = execSync(`bundle exec bin/theme stylesheets-dir ${process.env.THEME} 2> /dev/null`).toString().trim() const themeStylesheet = execSync(`bundle exec bin/theme tailwind-stylesheet ${process.env.THEME} 2> /dev/null`).toString().trim() module.exports = { resolve: (id, basedir, importOptions) => { if (id.startsWith('$ThemeStylesheetsDir')) { id = id.replace('$ThemeStylesheetsDir', themeStylesheetsDir); } else if (id.startsWith('$ThemeStylesheet')) { id = id.replace('$ThemeStylesheet', themeStylesheet); } return id; } }
Version data entries
37 entries across 37 versions & 1 rubygems