idio-dev
v1.2.0
Published
Development tools for idio.
Downloads
2
Readme
idio-dev
yarn add -E -D idio-dev
idio-dev
is a new Node.js npm package.
Development tools for idio.
watchBundles
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
.
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
browserify
- babelify: a configuration for
babelify
- ignore:
browserify
's ignore - exclude:
browserify
's exclude
⇢ src/scripts/tamara-de-lempicka.js bundled to src/static/scripts/tamara-de-lempicka.js
(c) artdecocode 2018