cep-bundler-webpack is a specialized Webpack bundler designed for creating Adobe Common Extensibility Platform (CEP) extensions, specifically supporting ExtendScript and modern web technologies like TypeScript. Currently at version 0.2.0, it provides a `createConfig` function to generate a Webpack configuration tailored for CEP's unique requirements, abstracting away much of the boilerplate. It is part of the `adobe-extension-tools` ecosystem, indicating its close association with Adobe extension development efforts. While at an early version, it aims to streamline the development workflow for Adobe Creative Cloud extensions by handling complex build processes, enabling features like TypeScript compilation. Its primary differentiator is its deep integration with the Adobe CEP environment, providing an opinionated but flexible build setup for a niche, yet powerful, extension platform.
npm install cep-bundler-webpackVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to set up a basic Adobe CEP extension using `cep-bundler-webpack` with a `webpack.config.js` file and a React/TypeScript entry point, including a minimal ExtendScript interaction. It also outlines the necessary `package.json` scripts and dependencies for development and production builds.
Always pin to an exact package version (e.g., `"cep-bundler-webpack": "0.2.0"`) and consult the project's GitHub repository or source code for changes when upgrading.
Ensure your `webpack.config.js` uses `const { createConfig } = require('cep-bundler-webpack');` and `module.exports = createConfig(...);`. If your project's `package.json` specifies `"type": "module"`, name your webpack config file `webpack.config.cjs` to explicitly treat it as CommonJS.Only use `cep-bundler-webpack` for its intended purpose: building Adobe CEP extensions. For other projects, use general-purpose Webpack configurations or bundlers.
Familiarize yourself with Adobe's official documentation for CEP debugging, and ensure your CEP extension is configured for debug mode (often by creating a `.debug` file or specifying debug in the manifest).
Change `import { createConfig } from 'cep-bundler-webpack';` to `const { createConfig } = require('cep-bundler-webpack');` in your `webpack.config.js`. If your `package.json` specifies `"type": "module"`, rename `webpack.config.js` to `webpack.config.cjs`.Ensure `webpack`, `webpack-cli`, and any loaders/plugins referenced in `createConfig` or your custom config are installed (e.g., `npm install --save-dev webpack webpack-cli ts-loader`). Verify that `entry` and `output` paths are correct in your `webpack.config.js`.
Check the `cep` object passed to `createConfig` for correct `id`, `name`, `version`, and `hosts`. Refer to `cep-bundler-core` documentation for expected CEP configuration schema. Ensure the build output matches the structure expected by Adobe applications for extensions.