Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const path = require('path')
const { fs, css } = require('@pluralsight/ps-design-system-build')
const js = require('../dist/css/index').default
const outputCss = css.jsToCss(js)
const cssOutputPath = path.join(__dirname, '..', 'dist', 'css', 'index.css')
const scssOutputPath = path.join(__dirname, '..', 'dist', 'css', 'index.scss')
fs.writeFile(cssOutputPath, outputCss)
fs.writeFile(scssOutputPath, outputCss)