Even Stensberg
cdefea844e
update dependency
2017-12-06 01:46:58 +01:00
Even Stensberg
4b0332d390
sync webpack-cli with changes in bin/* and binCases
...
remove old bin code
try using the cli folder for bInTestCases
update folders in binTestCases
increase callback timeout to see if that helps
update cli-dep
remove redundant console.log
2017-12-06 01:45:43 +01:00
Sergey Petushkov
6d7df9daad
Add marker fn; Refactor cutOff method; Check error when options are parsed
2017-11-27 08:43:27 +01:00
Sergey Petushkov
b0fe0138ee
Add error helpers; Add try-catch to options evaluation
2017-11-25 21:49:59 +01:00
Michael Ciniawsky
a88fdc74bf
refactor(bin/webpack): use `err.name` for error handling
2017-11-07 10:37:09 +01:00
Joe Bottigliero
33223aa3d4
[ #4886 ] --env output
...
- Adds stats.env to enable the out put of --env arguments passed to the webpack configuration.
2017-10-11 20:37:30 -05:00
Tobias Koppers
2acaf76dc3
Merge branch 'master' into fix-help-output-test-5345
...
# Conflicts:
# bin/webpack.js
2017-08-07 09:02:43 +02:00
Tobias Koppers
20d6f23d0a
stay with the old code style
2017-08-07 08:57:49 +02:00
Tobias Koppers
7a7c8372c3
Use yargs.parse instead of exitProcess(false)
...
This is simpler and less hacky
2017-08-07 08:55:56 +02:00
Esben Petersen
1fa2ba750c
fix beautify test
2017-08-04 10:17:07 +02:00
Tomáš Polomský
bb7d69def0
Fix exit code and ELIFECYCLE error
...
Due to race condition (process.exit() called multiple times) sometimes process fails with error ELIFECYCLE. In that case process exits with exit code 0 but should exit with exit code 2. This change ensures that the race condition can not happened.
2017-07-25 17:20:16 +02:00
Esben Petersen
1daa844d56
add check for validation errors top stop normal cli flow
...
see #5345
2017-07-24 22:38:18 +02:00
Esben Petersen
0c5725423d
stop yargs from exiting process and to fix failing help-output test
...
closes #5345
2017-07-24 21:00:55 +02:00
Tobias Koppers
94d2d24f67
minor fixes
2017-06-09 17:29:47 +02:00
Tobias Koppers
e343164ca3
fix issue with --display-modules and --optimization-bailout
2017-06-06 10:20:07 +02:00
Tobias Koppers
0f16dd95b1
fixes incorrect CLI stats output
...
add "detailed" preset
clean up presets to do more useful stuff
fixes #4141
fixes #4118
2017-06-01 15:03:26 +02:00
Tobias Koppers
d8539561fd
add optimization bailout info
...
track optimization bailout in concat plugin
2017-05-28 15:25:07 +02:00
Simon Legner
ea4be07d45
Link documentation to webpack.js.org
...
Replaces webpack.github.io links with links to the new documentation.
2017-02-07 10:07:01 +01:00
Tim Sebastian
18e962028e
remove leftovers of jam already removed in 4c7c929096
2017-01-31 23:26:46 +11:00
Tobias Koppers
b946eb423a
Merge pull request #3988 from malstoun/bug/2664
...
Fix regression with watch cli opt, add tests for this case
2017-01-17 19:28:54 +01:00
Andrey
0ec7de9fae
Fix regression with watch cli opt, add tests for this case
2017-01-17 16:25:55 +03:00
Sean Larkin
91c1f35e05
fix(node): rollback changes of Buffer.from to new Buffer() and bump down travis to 4.3 min node v
2017-01-16 23:57:27 -06:00
Tobias Koppers
82a5b03154
Merge pull request #3977 from malstoun/bug/2664
...
Fix watch when config is an array of objects
2017-01-16 15:53:08 +01:00
Andrey
e5308d1279
Fix watch when config is an array of objects
2017-01-15 12:04:29 +03:00
J Bruni
4957a0b737
Fixes #3946 (stats options being ignored)
2017-01-14 18:43:12 -02:00
Tobias Koppers
784af506a3
linter fixes
2017-01-11 15:54:40 +01:00
Tobias Koppers
f1d56dcc74
add support for multiple different stats objects
2017-01-11 14:37:47 +01:00
Tobias Koppers
19c7260b57
Merge branch 'master' into bugfix/fix_stats_when_passed_array
2017-01-11 12:47:37 +01:00
Tobias Koppers
983da1972f
Revert "Timestamp & Save flag"
2017-01-11 11:45:15 +01:00
Sean Larkin
ea2274a82f
fix bad logic and created additional test to cover
2017-01-10 12:02:24 -06:00
Sean Larkin
03d37489fe
Merge branch 'master' into bugfix/fix_stats_when_passed_array
2017-01-10 10:27:29 -06:00
Even Stensberg
8a07d4c1dd
Adds timestamp & save flag ( #3576 )
2017-01-06 08:25:53 -06:00
Ryan Berdeen
095e28012f
Exit with error when config promise is rejected
2017-01-04 16:33:00 -05:00
Sean Larkin
7327ee608a
chore(eslint): added eslint-node-plugin ( #3652 )
2016-12-30 17:13:49 -06:00
Sean Larkin
9014901b9c
Merge branch 'master' into bugfix/fix_stats_when_passed_array
2016-12-29 14:34:02 -06:00
Kees Kluskens
644e3a009b
Upgrade eslint ( #3626 )
...
* Upgrade eslint
* Pin down eslint version
* Temporary fix for difference between js-beautify and eslint
js-beautify suddenly requires a space between `while` here,
but everywhere else we use it without space.
* Remove redundant rules (present in eslint:recommended)
* Add rules comparable to js-beautify rules to eslint
* Add some forgotten files
* Ugh, fix some differences between eslint and js-beautify the nuclear way
* Add back variables
2016-12-29 10:10:41 -06:00
Tobias Koppers
71cf49a259
add depth to module
...
add depth to stats
fix stats spacing (fixes #3541 )
add maxModules to stats, default to 15 (fixes #3540 )
2016-12-21 18:03:20 +01:00
Sean Larkin
ce49851a43
chore(stats): remove comment, add semicolon, swap map with forEach
2016-12-20 02:23:03 -06:00
Sean Larkin
a4106ea98f
fix(stats): allow stats to respect config for MultiCompiler, MultiStats
2016-12-19 16:53:30 -06:00
Tobias Koppers
e7087ffeda
exit correctly when a fatal error happens
...
fixes #3464
2016-12-14 13:50:35 +01:00
Tobias Koppers
287eb18076
fixes typo, fixes #3379
2016-11-28 16:57:01 +01:00
Diogo Franco (Kovensky)
d5a7cf39bb
Update code to pass lint
2016-11-21 09:08:54 +09:00
Kees Kluskens
18929db92a
Moving parsing of the `progress` flag to webpack specific bin
...
As discussed in #3015
2016-09-20 22:41:28 +02:00
Tobias Koppers
c675067bcf
fixed some validation stuff
2016-09-19 21:57:12 +02:00
Tobias Koppers
1f781c1899
removed duplicate -v alias for verbose
...
it means --version now
2016-09-09 14:52:56 +02:00
Tobias Koppers
f47e920d22
fix --display-provided-exports
2016-09-09 14:31:02 +02:00
Tobias Koppers
2432f5afb2
add --display-provided-exports to CLI
2016-09-07 11:45:41 +02:00
Sean
61e7169b12
supports-color --colors support ( #2788 )
...
* Add `colors` alias to `color` arg
Allows arguments like `--colors` and `--no-colors` to fully support "supports-color".
* Set default --color option with supports-color.
adding default getter for --color option
2016-07-24 00:14:23 +02:00
Tobias Koppers
f2e5f81789
Merge pull request #2699 from mxstbr/log-watching
...
Add log when in watch mode
2016-07-22 14:15:30 +02:00
Tobias Koppers
2f618e733a
refactoring and aggressive-splitting plugin
2016-07-13 11:03:14 +02:00
Max
9b92c4d4d1
Add log when in watch mode
...
Ref #766
2016-07-12 16:51:29 +02:00
Tobias Koppers
78307a937f
allow to display used exports
...
support Tree Shaking with import *
fixes #2713
2016-06-29 01:17:59 +02:00
Sharang Dashputre
20ab1bfa7f
Fix error on empty array config
2016-04-24 03:26:52 +05:30
BuraBure
79c5d18d5d
Adds stats presets support to the CLI
...
the CLI wasn't processing stats presets and was throwing
```sh
webpack/bin/webpack.js:63
var outputOptions = Object.create(options.stats || firstOptions.stats || {});
^
TypeError: Object prototype may only be an Object or null
```
first PR here and couldn't find a contributor guide, so let
me know if you need me to fix/add something =)
2016-04-18 23:06:36 -03:00
Tobias Koppers
2e5a5f9db3
more pretty CLI options, added --verbose option
2016-01-14 21:21:09 +01:00
Tobias Koppers
46b12b2095
better ProgressPlugin and fixed bug for multi-compilation
2016-01-09 23:48:37 +01:00
Tobias Koppers
ff16bf4561
Merge branch 'webpack-1'
...
Conflicts:
bin/config-optimist.js
bin/convert-argv.js
package.json
test/browsertest/library2config.coffee
2015-11-14 16:32:54 +01:00
Tobias Koppers
bb2c3558c0
Support returning Promise and ES6 default export from configuration
2015-11-14 15:34:45 +01:00
Tobias Koppers
7cbd78c1da
Merge branch 'master' into webpack-2
...
Conflicts:
.travis.yml
bin/config-optimist.js
test/statsCases/define-plugin/expected.txt
2015-09-19 20:11:48 +02:00
Matthew Lehner
44fc8c1b9f
end when stdin closed
2015-08-25 16:00:53 -07:00
Tobias Koppers
7934faa181
Merge branch 'master' into webpack-2
...
Conflicts:
.travis.yml
bin/config-optimist.js
package.json
test/TestCases.test.js
2015-08-09 13:32:19 +02:00
Tobias Koppers
2e2cb7497b
beautify bin
2015-08-09 12:37:38 +02:00
Baraa Hamodi
3bcf17dca0
Use secure links.
2015-07-20 15:29:53 -07:00
Tobias Koppers
41f56a523a
Merge branch 'master' into webpack-2
2015-06-13 17:47:50 +02:00
James Ide
d0a5faefe1
Error.stackTrackLimit -> stackTraceLimit
...
Fixed typo in bin/webpack.js. Should be straightforward.
2015-06-09 00:06:28 -07:00
Tobias Koppers
94ba35cb13
Merge branch 'master' into webpack-2
...
Conflicts:
lib/WebpackOptionsApply.js
2015-05-22 00:19:16 +02:00
Tobias Koppers
f3b335c5a4
fixed #980
2015-05-21 22:43:34 +02:00
Tobias Koppers
11a578a36b
Merge branch 'master' into webpack-2
...
Conflicts:
lib/NormalModuleFactory.js
2015-05-16 14:59:50 +02:00
Jan Raasch
340479e85e
Pass watchOptions to compiler.watch
...
Before the cli would ignore the `options.watchOptions Object` of a `wepback.config.js` file.
I suppose this got lost in 89058a2c4a
2015-05-13 17:42:46 +02:00
Tobias Koppers
89058a2c4a
Reverted watch option rename:
...
watch -> doWatch -> watch
watchDelay -> watch -> watchOptions
watchDelay and --watch-delay are decrecated now but functional with message
watch is decrecated now but functional with message
2015-05-12 21:17:35 +02:00
Tobias Koppers
ff7848369a
Merge branch 'master' into webpack-2
...
Conflicts:
bin/webpack.js
package.json
2015-05-10 20:41:04 +02:00
Tobias Koppers
fd4c0042ed
use new style of passing watch options
2015-05-10 14:18:12 +02:00
Tobias Koppers
a6c49718e7
lint stuff
2015-04-28 23:09:39 +02:00
Tobias Koppers
0c8d94fa59
report exit code on Errors
...
#729
2015-03-05 21:48:29 +01:00
Tobias Bieniek
f41cb3ae9c
Use "supports-color" to detect if terminal supports colors
...
This solution still supports "--colors" and "--no-colors" for overriding the detected ability.
2015-02-09 15:58:35 +01:00
Tobias Koppers
3fc0a7eb77
whitespace
2015-02-04 23:22:30 +01:00
Michael Matuzak
4dbb32b690
update cli doc link
2014-09-18 11:47:00 -07:00
Tobias Koppers
992231a1c8
added `exclude` option to stats
...
added `--display-exclude` and `--display-modules`
exclude common package manager folders by default
fixes #473
2014-09-15 11:46:33 +02:00
Jason Anderson
f371945a29
Add TemplatedPathPlugin
2014-09-11 15:31:08 +02:00
Tobias Koppers
764c139ae1
added `cachedAssets` stats option
...
fixes webpack/webpack-dev-middleware#17
2014-08-28 11:04:48 +02:00
Tobias Koppers
b0caa69ae1
fixed file system purging
2014-06-11 22:52:02 +02:00
Tobias Koppers
44bb43854f
Added experimental MultiCompiler
...
webpack(...) takes an array
support an array in webpack.config.js
2014-06-11 22:26:50 +02:00
Tobias Koppers
6f941ab844
fixed command line spamming
2014-06-03 00:15:54 +02:00
Tobias Koppers
884c0a5349
added --display-cached
2014-05-17 00:00:11 +02:00
Tobias Koppers
3e9d9811a1
print fatal error details
2014-02-26 09:37:10 +01:00
Tobias Koppers
639a1ec0ac
faster exit when error
2014-02-26 09:36:49 +01:00
Tobias Koppers
e8976b7c9d
report error code when fatal error
...
fixes #181
2014-02-26 09:36:28 +01:00
Tobias Koppers
ad02d3c630
sorted out a little bug
2014-02-14 10:07:42 +01:00
Tobias Koppers
13596ba75f
allow to hide modules
2014-02-13 17:31:52 +01:00
Tobias Koppers
30f954067c
track chunk origin
2014-01-23 15:31:40 +01:00
Tobias Koppers
b6a1c40545
show error details
2014-01-21 16:24:17 +01:00
Tobias Koppers
a219e23690
fixed links
2014-01-14 09:57:26 +01:00
Tobias Koppers
cc8bfaa88b
better solution for supid node.js stream flushing
2013-12-03 23:03:58 +01:00
Tobias Koppers
42d5c05728
fixed incomplete output
2013-12-03 20:27:06 +01:00
Tobias Koppers
5dd2e0bbf8
fixed watch mode
2013-10-14 19:28:35 +02:00
Tobias Koppers
ff007b3a27
exit the process without waiting for caches
2013-10-14 14:22:07 +02:00
Tobias Koppers
30c4174915
fixes stats as json
2013-02-19 11:11:43 +01:00
Tobias Koppers
ee01837d66
Refactored everything for 0.9
2013-01-30 18:49:25 +01:00
Rainer Dreyer
0366444379
Renamed *libary* to *library*
...
Conflicts:
test/browsertest/build.js
2012-11-05 20:11:50 +01:00
Tobias Koppers
2eeb4923e1
API: loaderContext.depencency is more relaxed and don't need to be called before reading
...
API: loader.seperable cannot combined with
loaderContext.emitFile and loaderContext.emitSubStats
loaderContext.options.resolve
loaderContext.options.events
loaderContext.resolve and .sync
API: added profile option (and --profile)
API: added workers option (and --workers)
API: added closeWorkers option
API: if option workers is used:
options must be JSON.stringify-able. Except options.resolve and options.events.
Any error thrown in loader must be an object (i. e. an Error object). Only message, stack and value of toString is passed to main process.
API: The expected Cache object for options.cache has changed.
API: event module is emited after the module is finished.
API: event context is now named context-enum
API: added event context which is emited after the context is finished.
API: event dependency is removed. Use stats.dependencies for this.
API: event loader is removed. Use stats.loaders for this.
API: added stats.contexts as a list of contexts.
API: added stats...modules[..].dependencies for as list of files which affect the module's content.
API: added stats...modules[..].loaders for as list of loaders which affect the module's content.
API: removed stats.modulesPerChunk, it is useless and was deprecated.
API: added stats.chunkNameFiles which export the files for named chunks
API: added stats.startTime, timestamp as number
cmd: more colorful output to indicate caching and timing
API: webpack in watch mode emits the event watch-end if watch mode have to end (i. e. loader changed). You may restart it after clearing require.cache.
API: added loaderContext.loaderType as one of loader, preLoader or postLoader.
API: added loaderContext.currentLoaders as list of all loader of the current type.
API: added loaderContext.loaderIndex as index of current loader in loaderContext.currentLoaders.
API: added loaderContext.loaders, loaderContext.preLoaders and loaderContext.postLoaders.
2012-09-25 16:45:53 +02:00