This package provides a standard configuration preset for `liferay-npm-bundler`, Liferay's specialized tool for bundling npm modules into a format compatible with the Liferay Portal frontend. It aims to simplify the setup for typical Liferay frontend projects by encapsulating common Babel presets, such as `babel-preset-liferay-standard`, and bundler plugins like `liferay-npm-bundler-plugin-replace-browser-modules`. The current stable version, as per the provided context, is 2.32.2. While its specific release cadence isn't explicitly detailed, the `liferay-frontend-projects` monorepo, where this package resides, shows frequent updates across its various components, indicating active maintenance and regular releases. Its key differentiator is its tight integration and specific optimizations for the Liferay Portal environment, handling module resolution, bundling, and compatibility concerns unique to that platform, making it an essential tool for Liferay developers building OSGi-compliant frontend modules.
npm install liferay-npm-bundler-preset-standardNo compatibility data collected yet for this library.
This quickstart demonstrates how to set up a basic Liferay module, install `liferay-npm-bundler` and its `standard` preset, and configure them via `package.json` and `.npmbundlerrc` to bundle a simple JavaScript file.
Ensure you are developing for Liferay Portal and using `liferay-npm-bundler` as your module bundler. Consult Liferay's official development guides for proper environment setup.
When upgrading major versions of `liferay-npm-bundler` or `liferay-npm-bundler-preset-standard`, thoroughly review the `liferay-frontend-projects` monorepo changelogs for `babel-preset-liferay-standard` and related bundler plugins.
Consult Liferay's official documentation for recommended Node.js versions for your specific Liferay Portal version and the associated frontend tooling. Use a Node.js version manager (e.g., `nvm` or `fnm`) to align your development environment.
Adhere to Liferay's recommended module structure or customize the `output` path in your `.npmbundlerrc` file to match your project's layout. Ensure the `create-jar` option is set correctly for your build process.
Run `npm install --save-dev liferay-npm-bundler-preset-standard` in your project's root directory. Verify that `.npmbundlerrc` correctly specifies the preset name.
Try clearing your `node_modules` directory and npm cache (`npm cache clean --force`), then reinstall all dependencies (`npm install`). Ensure `liferay-npm-bundler` and `liferay-npm-bundler-preset-standard` are compatible versions.
Verify that `liferay-npm-bundler` and `liferay-npm-bundler-preset-standard` are using compatible versions. Check the `liferay-frontend-projects` monorepo's release notes for guidance on compatible package versions and supported Node.js environments.