1.3.2 • Published 8 years ago
babel-preset-lb v1.3.2
babel-preset-lb
Linear Bit's Babel presets
install
npm i -S babel-runtime;
npm i -D babel-preset-lb webpack@2.2.0 babel-loader
add the following to package.json
{
"babel": {
"presets": ["lb"]
}
}
environments
NODE_ENV=XXX
name | description |
---|---|
test | for testing (Jest) |
development | |
production |
Scripts
Use the following scripts in package.json
{
"scripts": {
"precompile": "rm -f -r ./build/*",
"compile": "babel src --out-dir build"
}
}