Development tools for idio.
npm install idio-dev
``sh`
yarn add -E -D idio-dev
idio-dev is a new Node.js npm package.
Development tools for idio.
Make and watch browserify bundles. This produces source maps and does not minify output, so that it's useful in development. To build production bundles, use buildBundles.
`js
import { watchBundles } from 'idio-dev'
await watchBundles({
from, to,
babelify: {
babelrc: false,
plugins: [
'@babel/plugin-transform-modules-commonjs',
'@babel/plugin-proposal-object-rest-spread',
],
presets: [
'@babel/preset-react',
],
},
})
`
- _from_: where to look for JS files which need to be compiled
- _to_: where to put compiled bundles
- _browserify_: any additional options to pass to browserifybabelify
- _babelify_: a configuration for browserify
- _ignore_: 's ignorebrowserify
- _exclude_: 's exclude
`fs``
⇢ src/scripts/tamara-de-lempicka.js bundled to src/static/scripts/tamara-de-lempicka.js
---
(c) [artdecocode][1] 2018
[1]: https://artdeco.bz