MWAP CLI
The MWAP CLI allows you to start, build, and export your applications.
To get a list of the available CLI commands, run the following command inside your project directory:
npx mwap -hYou should get a list of commands looking something like:
Usage  $ mwap <command> [options]
Available Commands  build     Build your project for production.  dev       Run your project in dev mode.  export    Static export your app.  start     Run your build.
For more info, run any command with the `--help` flag  $ mwap build --help  $ mwap dev --help
Options  -v, --version    Displays current version  -h, --help       Displays this message
build
mwap build creates an production build of your application.
Usage  $ mwap build [options]
Options  --publicPath    The public path to prefix assets with  (default /dist/)  --entry         The package to use as an entry point  (default @mwap/express)  --cwd           The current working directory to build your app from  (default .)  --dist          The distribution directory that files will be built into  (default dist)  --mode          Either 'production' or 'development'  (default production)  --analyze       Analyze the client bundle with webpack-bundle-analyzer? This will open a browser window  (default false)  --inspect       Inspect the client bundle for potential performance improvments?  (default false)  --verbose       Enable more verbose logging?  (default false)  --progress      Show progress bars?  (default true)  -h, --help      Displays this message
start
mwap start runs your bundled app in production mode.
Usage  $ mwap start [options]
Options  --publicPath    The public path to prefix assets with  (default /dist/)  --cwd           The current working directory to run your app from  (default .)  --dist          The distribution directory that files will be built into  (default dist)  --mode          Either 'production' or 'development'  (default production)  --port          The port to start the server on  (default 5000)  -h, --help      Displays this message
dev
mwap devstarts your app in development mode with HMR and other awesome things.
Usage  $ mwap dev [options]
Options  --publicPath    The public path to prefix assets with  (default /dist/)  --cwd           The current working directory to run your app from  (default .)  --dist          The distribution directory that files will be built into  (default dist)  --mode          Either 'production' or 'development'  (default development)  --port          The port to start the server on  (default 5000)  --analyze       Analyze the client bundle with webpack-bundle-analyzer? This will open a browser window  (default false)  --inspect       Inspect the client bundle for potential performance improvments?  (default false)    --verbose       Enable more verbose logging?  (default false)  --progress      Show progress bars?  (default true)
export
mwap export exports your application as a static site.
Usage  $ mwap export [options]
Options  --publicPath    The public path to prefix assets with  (default /dist/)  --cwd           The current working directory to export your app from  (default .)  --dist          The distribution directory your app was previously built into  (default dist)        --static        The directory that static files will be exported into  (default static)  --mode          Either 'production' or 'development'  (default production)  -h, --help      Displays this message
Related
For more information on what to do next, we recommend the following sections: