Commit Graph

101 Commits

Author SHA1 Message Date
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
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
Kenny Cosca 142ad9dae9 Adding option ( -v or --version ) to print version. (#2935) 2016-09-07 20:37:24 +02:00
Tobias Koppers 38e058f438 fixes #2754 2016-07-13 12:56:36 +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
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 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 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
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
Aarni Koskela 189423b286 CLI: Complain more clearly when output filename is missing
Fixes #1376
2015-09-08 16:44:56 +03: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 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
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