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

Version Path
bullet_train-themes-light-1.7.12 postcss-import-config.js
bullet_train-themes-light-1.7.11 postcss-import-config.js
bullet_train-themes-light-1.7.10 postcss-import-config.js
bullet_train-themes-light-1.7.9 postcss-import-config.js
bullet_train-themes-light-1.7.3 postcss-import-config.js
bullet_train-themes-light-1.7.2 postcss-import-config.js
bullet_train-themes-light-1.7.1 postcss-import-config.js
bullet_train-themes-light-1.7.0 postcss-import-config.js
bullet_train-themes-light-1.6.38 postcss-import-config.js
bullet_train-themes-light-1.6.37 postcss-import-config.js
bullet_train-themes-light-1.6.36 postcss-import-config.js
bullet_train-themes-light-1.6.35 postcss-import-config.js
bullet_train-themes-light-1.6.34 postcss-import-config.js
bullet_train-themes-light-1.6.33 postcss-import-config.js
bullet_train-themes-light-1.6.32 postcss-import-config.js
bullet_train-themes-light-1.6.31 postcss-import-config.js
bullet_train-themes-light-1.6.30 postcss-import-config.js