Skip to content

Commit

Permalink
feat(badge): generate scss stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
jaketrent committed Jan 25, 2018
1 parent b1ee268 commit 3571318
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/badge/build/css.js
@@ -1,7 +1,12 @@
const path = require('path')

const { fs, css } = require('@pluralsight/ps-design-system-build')

const js = require('../dist/css/index').default

const outputPath = path.join(__dirname, '..', 'dist', 'css', 'index.css')
fs.writeFile(outputPath, css.jsToCss(js))
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)

0 comments on commit 3571318

Please sign in to comment.