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)
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)
const writeHtml = async (pageType, html) => {
const outputDir = path.join(__dirname, '..', 'dist', 'html')
await fs.mkdir(outputDir)
const outputPath = path.join(outputDir, pageType + '.html')
await fs.writeFile(outputPath, html)
}