UNPKG

react-awesome-button-namdaoduy

Version:

Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons

17 lines (14 loc) 477 B
import fs from 'fs'; import path from 'path'; import shell from 'shelljs'; const THEMES = path.resolve(__dirname, 'src/styles/themes'); const THEMES_PATH = './dist/themes'; const THEMES_ARG = 'AWESOME_THEME'; fs.readdir(THEMES, (err, files) => { files.forEach((file) => { if (file.match(/theme-/ig)) { shell.exec(`${THEMES_ARG}=${file} webpack --config webpack.themes.config.js`); shell.exec(`rm ${THEMES_PATH}/${file}.js`); } }); });