1.0.6 • Published 4 years ago

occ-webpack-plugin v1.0.6

Weekly downloads
32
License
MIT
Repository
github
Last release
4 years ago

Oracle CX Commerce webpack plugin

Usage

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.

Deployment

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 .

Related