CLI

The following flags can be amended to the webpack command:

Basic Options

Flag Description
--config [path] Path to the config file (default: webpack.config.js or webpackfile.js)
-d Compiles in Development mode (shortcut for --debug --devtool eval-cheap-module-source-map --output-pathinfo)
--debug Switch loaders to debug mode
--entry [path] The entry point
--env [environment] Enviroment passed to the config, when it is a function
-p Compiles in Production mode (shortcut for --optimize-minimize --define process.env.NODE_ENV="production")
--progress Print compilation progress in percentage
-v, --version Webpack’s version
-w, --watch Sets Webpack into Watch mode, automatically recompiling when it notices a file has changed

results matching ""

    No results matching ""