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

Version Path
bullet_train-themes-light-1.10.0 postcss-import-config.js
bullet_train-themes-light-1.9.0 postcss-import-config.js
bullet_train-themes-light-1.8.5 postcss-import-config.js
bullet_train-themes-light-1.8.4 postcss-import-config.js
bullet_train-themes-light-1.8.3 postcss-import-config.js
bullet_train-themes-light-1.8.2 postcss-import-config.js
bullet_train-themes-light-1.8.1 postcss-import-config.js
bullet_train-themes-light-1.8.0 postcss-import-config.js
bullet_train-themes-light-1.7.23 postcss-import-config.js
bullet_train-themes-light-1.7.22 postcss-import-config.js
bullet_train-themes-light-1.7.21 postcss-import-config.js
bullet_train-themes-light-1.7.20 postcss-import-config.js
bullet_train-themes-light-1.7.19 postcss-import-config.js
bullet_train-themes-light-1.7.18 postcss-import-config.js
bullet_train-themes-light-1.7.17 postcss-import-config.js
bullet_train-themes-light-1.7.16 postcss-import-config.js
bullet_train-themes-light-1.7.15 postcss-import-config.js
bullet_train-themes-light-1.7.14 postcss-import-config.js
bullet_train-themes-light-1.7.13 postcss-import-config.js
bullet_train-themes-light-1.7.12 postcss-import-config.js