Oracle CX Commerce webpack plugin
Install the module:
yarn add -D occ-webpack-plugin
// or
npm install occ-webpack-plugin
Now you can use DCU in your CI/CD pipelines.
const WebpackOnBuildPlugin = require("occ-webpack-plugin");
new WebpackOnBuildPlugin({
platform: path.resolve(__dirname, "platform"),
});
When you’re ready to deploy to production, create a minified bundle with npm run build
, then deploy using dcu CLI.
Install the module:
yarn add -D @oraclecc/dcu
// or
npm install @oraclecc/dcu
Transfer all files to the given Commerce Cloud administration interface from the platform folder.
cd platform/
npx dcu -k $APP_KEY -n $APP_NODE -x .