Skip to content

oracle-commerce-cloud/occ-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

npm run build

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