项目作者: oracle-commerce-cloud

项目描述 :
Webpack plugin for fully integrated React components of Oracle Commerce Cloud
高级语言: JavaScript
项目地址: git://github.com/oracle-commerce-cloud/occ-webpack-plugin.git


Oracle CX Commerce webpack plugin

Usage

Install the module:

  1. yarn add -D occ-webpack-plugin
  2. // or
  3. npm install occ-webpack-plugin

Now you can use DCU in your CI/CD pipelines.

  1. const WebpackOnBuildPlugin = require("occ-webpack-plugin");
  2. new WebpackOnBuildPlugin({
  3. platform: path.resolve(__dirname, "platform"),
  4. });

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:

  1. yarn add -D @oraclecc/dcu
  2. // or
  3. npm install @oraclecc/dcu

Transfer all files to the given Commerce Cloud administration interface from the platform folder.

  1. cd platform/
  2. npx dcu -k $APP_KEY -n $APP_NODE -x .