jest-webpack icon indicating copy to clipboard operation
jest-webpack copied to clipboard

Support flags for webpack

Open mzgoddard opened this issue 7 years ago • 5 comments

Support flags to pass options to webpack. Since this tool is intended to sit in front of jest and integrate webpack in options should follow jest's format but be prefixed with webpack. Like a config option would be --webpackConfig.

Related: https://github.com/mzgoddard/jest-webpack/issues/3#issuecomment-309194153

  • [ ] --webpackConfig

mzgoddard avatar Jun 20 '17 06:06 mzgoddard

jest-webpack 0.4 lets you specify webpack options after jest options.

Usage: jest-webpack [jest options] [--[webpack] [webpack options]]

mzgoddard avatar Feb 09 '18 03:02 mzgoddard

Hi @mzgoddard,

This portion of code keeps exiting and listing webpack options

var webpackArgv = webpackYargs.parse(webpackArgvPortion);

I can see that it received --webpack --config webpack.config.js correctly based on the output, but the process exit is preventing me from running main().

Providing just the bottom of the webpack output:

Missing argument values: config-name, context, entry, module-bind, module-bind-post, module-bind-pre, output-path, output-filename, output-chunk-filename, output-source-map-filename, output-public-path, output-jsonp-function, output-library, output-library-target, records-input-path, records-output-path, records-path, define, target, watch-aggregate-timeout, devtool, resolve-alias, resolve-extensions, resolve-loader-alias, optimize-max-chunks, optimize-min-chunk-size, prefetch, provide, plugin

Using [email protected]

Any ideas? Greatly appreciate this project.

samvincent avatar Feb 10 '18 03:02 samvincent

This portion of code keeps exiting and listing webpack options

I've got the same problem here.

What I did was pass --webpack --config config/webpack.config.js to the script. But it keeps showing me webpack config options

Morozzzko avatar Feb 14 '18 12:02 Morozzzko

Same issue with --webpack --config

fsworld009 avatar Apr 02 '18 05:04 fsworld009

I have the same issue and have created a pull-request that fixes it for me: #33

janhapke avatar Oct 17 '18 12:10 janhapke