Customizing Internal Paths
Plasmo constructs several paths to be used in the bundling process. These paths are used to locate the source code and the output directory for example. This section describes how to customize some of these paths.
Build path
The default bundle build path is ./build. To change this behavior, either:
- Specify the
--build-pathflag:
plasmo build --build-path=./dist- Or use the
PLASMO_BUILD_PATHtop-level environment variable:
cross-env PLASMO_BUILD_PATH=dist plasmo buildThis applies to the dev, build and package commands.
Source path
The default source path is ./src. To change this behavior, either:
- Specify the
--src-pathflag:
plasmo build --src-path=src/extension- Or use the
PLASMO_SRC_PATHtop-level environment variable:
cross-env PLASMO_SRC_PATH=src/extension plasmo buildThis applies to the dev, build and package commands.