Search code examples
javascripttypescriptwebpackwebpack-dev-serverwebpack-2

Unknown argument: theme in Webpack 2.7.0


Currently I am using webpack 1.16.0 and passing an argument --theme to define the output path and plugin paths.

the command looks like this: rimraf dist && webpack --bail --progress --profile --theme=<name of theme>

Now I am trying to upgrade to webpack 2.7.0 and there I face the following issue: Unknown argument: theme

Is there a way to pass the theme with webpack 2.7.0? Does not look like theme is a valid config option. What can I use in place of theme?


Solution

  • I did this by passing --env.theme='' in the command line!