Sha256: 76760b240f00d70514ca9cf19ce02644ee1a35b14371f516fd6d5fdf39500273
Contents?: true
Size: 628 Bytes
Versions: 36
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
36 entries across 36 versions & 1 rubygems