Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

656 B
Raw Blame
import { resolve } from 'node:path'

export function getCSSConfig (root: string) {
  return {
    preprocessorOptions: {
      scss: {
        api: 'modern-compiler',
        loadPaths: [ resolve(root, './src/sass/include') ],
        // FIXME: Wait for bootstrap upgrade that fixes deprecated sass utils
        silenceDeprecations: [ 'import', 'color-functions', 'global-builtin', 'if-function' ]
      }
    }
  }
}

export function getAliasConfig (root: string) {
  return [
    { find: /^video.js$/, replacement: resolve(root, './node_modules/video.js/core.js') },
    { find: '@root-helpers', replacement: resolve(root, './src/root-helpers') }
  ]
}