Package Exports
- @ecomplus/storefront-framework
- @ecomplus/storefront-framework/src/webpack.config
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ecomplus/storefront-framework) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
storefront-framework
Webpack based tool to develop and build JAMstack & PWA e-commerce templates with E-Com Plus APIs
Getting started
First things first, install the module as dev dependency:
npm i --save-dev @ecomplus/storefront-framework
Note: while you can install and run
storefront-pack
globally, we recommend installing it locally.
Commands
storefront-pack serve
: Starts Webpack development server on port 9123 (http://localhost:9123);storefront-pack build
: Compile assets bundles for production and prerender e-commerce pages;
NPM scripts
NPM package.json
scripts are a convenient and useful means to run
locally installed binaries without having to be concerned
about their full paths. Simply define a script as such:
{
"scripts": {
"serve": "storefront-pack serve",
"build": "storefront-pack build"
}
}
And run the following in your terminal/console:
npm run serve
Building for production:
npm run build