A plucky little batteries-included compiler util. Built with Webpack.
- glob & multi-entries
- modern JS
- modern CSS
- live-reload
- conventient CLI
npm i spitball
spitball <command> [inputs...] --out <dir>
To take advantage of multi-entries and a few other options, you'll need to define a config file.
// spitball.config.js
module.exports = {
in: 'src/*.js', // string or object syntax
out: 'dist',
env: {
apiKey: 'abcde'
},
alias: {
components: 'src/components/'
},
banner: '/** Hello there */', // default undefined
reload: true // live-reload, defaults to false
}
MIT License © The Couch