jsxbin-webpack-plugin
v1.0.0
Published
A Webpack plugin to JSXbin-pack Extendscript outputs.
Downloads
20
Maintainers
Readme
jsxbin-webpack-plugin
is a Webpack 4.x plugin for compiling ExtendScript into .jsxbin
files for use in
Adobe CEP extensions. If you are looking for Webpack 3.x support, use v0.0.4 and older.
Get Started
npm install --save-dev jsxbin-webpack-plugin
const JSXBinWebpackPlugin = require('jsxbin-webpack-plugin')
module.exports = {
entry: {
'app-extendscript': 'app-extendscript.js'
},
output: {
path: 'dist'
},
plugins: [
new JSXBinWebpackPlugin({
test: /-extendscript\.js$/
})
]
}
Features
- Uses the jsxbin package to compile from JS to JSXBin files.
- Includes a
test
option to only compile specific output chunks.
Why use this?
Instead of using a build tool like gulp
to take raw ES5 code and package it, I've found it to be a
lot more flexible to use something like Webpack and Babel to first transpile the code, and then compile
it down to the JSXBin format.
Since Webpack and Babel are already involved for transpiling the code, introducing something like gulp
or a bash script into the mix would be introducing yet another tool into the build pipeline for my CEP
plugins.