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
shotat
ff90624860
fix typo
2017-03-04 19:23:25 +09:00
Tim Sebastian
2c14f6cd2c
remove labeled modules leftovers
2017-02-25 01:10:38 +11:00
Ryan Harvey
14a9dee1f0
allow mutli-file entry via CLI
2017-02-20 13:33:20 -06:00
Tobias Koppers
b1e5949523
make CLI passed arguments absolute
2017-02-09 23:24:23 +01: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
Sean Larkin
aa90166ebc
Merge pull request #3524 from webpack/bugfix/fix_stats_when_passed_array
...
fix(stats): allow stats to respect array of configs, also bump deps.
2017-01-11 09:15:42 -06: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
951a7603d2
Merge pull request #3889 from cletusw/args-undefined-master
...
Support UglifyJsPlugin with no arguments in CLI --plugin
2017-01-11 13:03:23 +01:00
Tobias Koppers
028c513017
Merge pull request #3898 from webpack/lint/eslint-rules
...
code linting
2017-01-11 13:02:43 +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
8e69a80847
code linting
2017-01-11 12:29:01 +01:00
Clayton Watts
5f4481940b
Support UglifyJsPlugin with no arguments in CLI --plugin
...
UglifyJsPlugin checks `typeof options !== "object"`, which doesn't work as expected with `null` since its type is `"object"`. a1dca894d9/lib/optimize/UglifyJsPlugin.js (L16)
See 48e17ab308 (commitcomment-20424582)
2017-01-11 12:20:59 +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
Justin Coyne
9734d00d8b
Fix typo. Intervall -> Interval ( #3664 )
2017-01-01 11:21:46 -06:00
Sean Larkin
7327ee608a
chore(eslint): added eslint-node-plugin ( #3652 )
2016-12-30 17:13:49 -06:00
Sean Larkin
aa8d01bf8d
refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot ( #3636 )
...
* refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot
* This change allows for buildin to now be part of the lint test by addition of an extra .eslintrc file which extends existing but sets es6 to false
* Turned on no-unused-vars for eslint, and then removed all warnings from turning that feature on
* Was getting notified of errors in "quote" property in eslintrc, so changed to correct value from error to 2.
* beautify
* swap invalid eslint config val
2016-12-30 09:43: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
f4ab7fc7e2
more performance improvements
2016-12-14 16:22:54 +01:00
Tobias Koppers
e7087ffeda
exit correctly when a fatal error happens
...
fixes #3464
2016-12-14 13:50:35 +01:00
Tobias Koppers
5225c000c1
fixes --cache and --no-cache
2016-12-07 16:18:33 +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
Tobias Koppers
712a91488d
`--module-bind` automatically appends -loader
...
fixes browsertests
2016-11-16 13:32:16 +01:00
Tobias Koppers
91cbb4c288
removed DedupePlugin
...
it's no longer needed for npm3
and causes many issues
2016-11-15 09:25:58 +01:00
Kees Kluskens
985a651e0f
Implement feedback
...
- Rename `validateWebpackOptions` -> `validationSchema`
- Export `WebpackOptionsValidationError` on webpack.
2016-11-02 17:27:02 +01:00
Tobias Koppers
626fbbbec9
Merge branch 'master' into fix/eslint-no-inner-declarations-warnings
2016-10-31 13:43:34 +01:00
Kees Kluskens
62c89ec98f
Using --version or -v would display the help menu
...
This worked before the optimist -> yargs migration, but was not migrated properly.
2016-10-30 13:35:05 +01:00
Tushar Sonawane
6b39a5325c
fix 'no-inner-declarations' warnings
2016-10-29 19:30:01 +05:30
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
595de75fdc
Merge pull request #3007 from asarode/master
...
Support multiple config compiler flags (#2835 )
2016-09-19 22:08:29 +02:00
Moorthy Venkatraman
b3e901d1fc
remove defaulter
2016-09-19 22:03:09 +02:00
Tobias Koppers
c675067bcf
fixed some validation stuff
2016-09-19 21:57:12 +02:00
arjun
19c739568e
Make configFiles always be an array
2016-09-18 11:08:01 -07:00
arjun
77ec1fdb71
Support multiple config compiler flags
2016-09-17 22:42:56 -07:00
Gajus Kuizinas
9e0a95e48b
fix: improve error phrasing
2016-09-17 20:22:59 +01:00
Gajus Kuizinas
e57b3a7631
feature: log options validations errors in CLI
...
Ajv is using doT to compile validation logic. There is minimal overhead validating an object against a pre-compiled schema. In case of the CLI, options will be validated once by the CLI engine and the second time by API.
I prefer to explicitly handle error checking rather than relying on an error getting thrown by the API engine.
API needs to retain “validationErrors” object nevertheless to enable debugging when using webpack programmatically.
2016-09-17 20:21:07 +01: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
Kenny Cosca
142ad9dae9
Adding option ( -v or --version ) to print version. ( #2935 )
2016-09-07 20:37:24 +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
38e058f438
fixes #2754
2016-07-13 12:56:36 +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
Max Stoiber
e9b985c852
Add --resolve-extensions support to CLI ( #2696 )
...
* Add --resolve-extensions support to CLI
Wasn't supported so far, closes #1447
* Make --resolve-extensions a yargs array type
* Fix linting
2016-06-28 19:09:38 +02:00
Tobias Koppers
d16459ba12
enable uglifyjs sourcemap via CLI if using source-map devtool
...
fixed #2590
2016-06-04 12:16:33 +02:00
Tobias Koppers
a657634607
disabled multi step HMR, because it seems to have issues
2016-05-05 17:11:20 +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
Adam Krebs
0f5cd21303
Sort config extensions so .js is always first. Fixes #1803
2016-03-17 15:46:55 -04:00
Johannes Lumpe
405c141859
dot notation for `default`
2016-03-03 12:12:06 +02:00
Johannes Lumpe
b1078b8f83
Check es6 default export against `null`, swapped `null` check in `processConfiguredOptions`
2016-03-01 12:44:30 +02:00
Johannes Lumpe
acccd86256
Fixed linting issue
2016-02-29 11:07:14 +02:00
Johannes Lumpe
894be00b2f
Update convert-argv.js
...
Removed old code
2016-02-29 10:25:21 +02:00
Johannes Lumpe
fe71cde0d9
Update convert-argv.js
...
Allow usage of ES6 default exported function for config
2016-02-29 10:23:44 +02:00
Tobias Koppers
d0e1229863
fixed default option
2016-01-21 01:17:53 +01:00
Tobias Koppers
aa55d80925
fixed detection of output.filename
2016-01-19 19:35:05 +01:00
Kenny Tran
eebc5ceaf6
Fix no-redeclare in code
2016-01-18 18:57:42 -08: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
Lex Vjatkin
01e7a7cb95
JS API: ProgressPlugin default handler
...
Default handler moved from CLI args parser to plugin itself.
Now you can use ProgressPlugin in JS API without specifying handler.
Resolves webpack/webpack#1000 , SRP
2015-12-10 14:06:20 +01:00
Tobias Koppers
4c86af40b2
fixed bug when --define is not set
2015-11-20 19:57:47 +01:00
Tobias Koppers
37e9515cc4
remove deprecated stuff
2015-11-20 08:37:56 +01:00
Tobias Koppers
96d3b1398e
set NODE_ENV production on -p not on -d
2015-11-20 08:31:45 +01:00
Tobias Koppers
67656b90e2
split uglify-js from loader minimize, better shortcut defaults
2015-11-16 23:11:15 +01:00
Tobias Koppers
058f0e8774
comments for the CLI
2015-11-16 22:53:15 +01:00
Tobias Koppers
bd562b4c94
support `webpackfile.js`
2015-11-16 22:16:47 +01:00
Tobias Koppers
e0a6aef63a
`-p` sets NODE_ENV to production
2015-11-16 22:16:32 +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
Dan Crews
dc4db086c7
Removing two aliases that were already used
2015-11-04 11:35:29 -07: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
Tobias Koppers
c97c3ab502
Merge pull request #1425 from cesarandreu/cli-config-alias
...
Add -c config alias to the CLI
2015-09-10 09:53:35 +02:00
Aarni Koskela
189423b286
CLI: Complain more clearly when output filename is missing
...
Fixes #1376
2015-09-08 16:44:56 +03:00
Cesar Andreu
3d41c391eb
Add -c config alias to the CLI
2015-09-06 22:53:24 -07: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
Tobias Koppers
5f14ee4a74
error message
2015-08-09 12:23:59 +02:00
Kinka Huang
48e17ab308
support arguments input for CLI --plugin
...
using the parseQuery function of loader-utils, and get arguments for the
plugin in the option --plugin.
for example: `webpack --plugin DefinePlugin?{a:1,b:2}`
2015-08-09 12:18:12 +02:00
Tobias Koppers
6782a1e2bb
Merge pull request #1270 from bhamodi/master
...
Use secure links.
2015-08-08 13:00:43 +02:00
Tobias Koppers
5bbfbae551
Merge branch 'master' into webpack-2
...
Conflicts:
package.json
test/statsCases/chunks/expected.txt
2015-07-25 13:49:14 +02:00
Kamil Szot
f19712f1bf
Adjust to use of interpret module version 0.6
2015-07-23 12:31:56 +02:00
Baraa Hamodi
3bcf17dca0
Use secure links.
2015-07-20 15:29:53 -07:00
Tobias Koppers
431a4c791c
Merge branch 'master' into webpack-2
...
Conflicts:
hot/dev-server.js
hot/only-dev-server.js
hot/poll.js
hot/signal.js
lib/ChunkTemplate.js
lib/HotModuleReplacement.runtime.js
lib/HotModuleReplacementPlugin.js
lib/JsonpMainTemplatePlugin.js
lib/MainTemplate.js
lib/NormalModule.js
lib/Parser.js
lib/RecordIdsPlugin.js
lib/WebpackOptionsApply.js
lib/dependencies/RequireEnsureDependency.js
lib/node/OldNodeWatchFileSystem.js
lib/optimize/OccurrenceOrderPlugin.js
package.json
2015-07-17 09:30:37 +02:00
Tobias Koppers
cf30eeeb0f
Merge branch 'master' into webpack-2
...
Conflicts:
lib/ChunkTemplate.js
lib/Compilation.js
lib/HotModuleReplacement.runtime.js
test/TestCases.test.js
test/statsCases/chunks/expected.txt
test/statsCases/simple-more-info/expected.txt
test/statsCases/simple/expected.txt
2015-07-01 00:44:17 +02:00
Guillermo Bonvehi
380b0665c1
Added --output-filename to be consistent with naming conventions
...
--output-pathinfo maps to output.pathinfo, however, output.filename is set
by --output-file instead of --output-filename.
Added the new argument while keeping the old one for compability.
2015-06-29 23:03:46 -03:00
Tobias Koppers
69b5e548d5
use multiStep HMR by default
...
fixed bug in runtime
2015-06-21 22:22:55 +02:00
Tobias Koppers
b2f2643437
Merge pull request #1158 from miniEggRoll/master
...
fix config extension interpretation for .babel.js
2015-06-15 09:35:22 +02:00
Tobias Koppers
ebabcfd893
Merge pull request #1132 from kennyt/fix/MinChunkSize
...
Fix optimize-min-chunk-size option for CLI
2015-06-15 09:13:34 +02:00
Tobias Koppers
41f56a523a
Merge branch 'master' into webpack-2
2015-06-13 17:47:50 +02:00
mrsquid0126@gmail.com
d4d012e6bc
fix config extension interpret for .babel.js
2015-06-11 14:49:30 +08: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
66df34688e
Merge branch 'master' into webpack-2
...
Conflicts:
bin/convert-argv.js
lib/webpack.js
2015-06-07 22:24:03 +02:00
Kenny Tran
5ffffa9d9b
Fix optimize-min-chunk-size option for CLI
2015-05-31 20:42:49 -07:00
Tobias Koppers
f41b103d07
fixed bug when passing entries over cli
2015-05-28 08:48:16 +02:00
Kenny Tran
7f7b6c516e
Make console warnings consistent
2015-05-22 09:12:25 -07:00
Kenny Tran
ef4943bff7
Fix typo in convert-argv.js
2015-05-22 09:11:47 -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
297707d42d
added --watch-poll
...
fixed webpack/watchpack#3
2015-05-10 16:41:55 +02:00
Tobias Koppers
319a8f77d6
support deprecated watchDelay
2015-05-10 14:32:16 +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
ed75627f06
Merge branch 'master' into webpack-2
...
Conflicts:
bin/convert-argv.js
package.json
2015-04-14 20:09:29 +02:00
Tobias Koppers
9a800d5979
fixed buggy PRs for webpack.configs
...
fixes #956
fixes #964
2015-04-10 10:21:38 +02:00
Adam Krebs
7cc35ce10f
More helpful error message if we can't find webpack config file
2015-04-08 13:59:21 -04:00
Adam Krebs
2875e402d7
Automatically pull in webpack.config files written in compile-to-js langs using interpret.extensions
2015-04-08 08:28:47 -04:00
Aleksejs Sinicins
a1596fb1dc
Use node-interpret to import configuration in various formats.
2015-04-06 15:22:51 +03:00
Tobias Koppers
ff4585b108
allow config file to export a function
...
pass --env to config function
2015-03-05 22:22:22 +01:00
Tobias Koppers
b31a8110b3
Throw error when output.filename is missing
...
#719
2015-03-05 22:21:47 +01:00
Tobias Koppers
aa7885b91d
removed --optimize-occurrence-order
2015-03-05 22:05:11 +01:00
Tobias Koppers
be9adc0a26
removed --output-named-chunk-file
2015-03-05 22:02:48 +01:00
Tobias Koppers
0c8d94fa59
report exit code on Errors
...
#729
2015-03-05 21:48:29 +01:00
Tobias Koppers
a4e3b641bc
-d now uses eval-source-map instead of source-map
...
#729
2015-03-05 21:29:04 +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
Tobias Koppers
84d4df203d
better progress
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
2576fdaf20
fixes #438
2014-09-03 13:15:35 +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
d80cdcefac
Code Quality
2014-06-24 18:53:32 +02:00
Tobias Koppers
b0caa69ae1
fixed file system purging
2014-06-11 22:52:02 +02:00