Commit Graph

599 Commits

Author SHA1 Message Date
Tobias Koppers fbf84d51f2 allow to apply plugins to child compiler
allow to match on compiler name in rules

#4177
2017-02-22 11:49:49 +01:00
Mohsen Azimi 1ee598a08e Add "absolutePath": true to stats.context 2017-02-14 02:51:22 -08:00
Mohsen Azimi 43bd355adf Fix formatting 2017-02-13 18:31:50 -08:00
Mohsen Azimi 776c6c4237 Add more granular schema for stats in options schema 2017-02-13 18:29:58 -08:00
Tim Sebastian b32054d4c0 rename `non-absolut` to `relative` 2017-02-10 07:47:46 +11:00
Tim Sebastian 6a7a7d5633 use allOf instead of "extendRefs: true" option
this is recommended by @epoberezkin
2017-02-02 22:54:20 +11:00
Tim Sebastian ab1d1d0434 allow strings and array of strings for module.noPArse
also make sure they are absolute paths
2017-02-02 21:47:21 +11:00
Tim Sebastian 890db7edc3 add absolutePath to records paths 2017-02-02 21:41:29 +11:00
Tim Sebastian 56a26f3847 add `absolutePath` to module definitions
as ajv is implemented this will automatically only be applied if the properties are strings, as `absolutePath` only works with type === string
2017-02-02 21:41:09 +11:00
Tim Sebastian 6971692a34 specify more paths as required non-absolute 2017-02-02 21:18:23 +11:00
Tim Sebastian 94ab4ecd3a apply requsted changes 2017-02-02 21:12:20 +11:00
Tim Sebastian 9124a941ae remove superfluous call to getError 2017-02-02 20:16:38 +11:00
Tim Sebastian 2a6ba9cc2f apply absolutePath to webpack schema 2017-02-02 20:13:37 +11:00
Tim Sebastian 254b60337d add absolutePath keyword for ajv 2017-02-02 20:13:15 +11:00
Naoyuki Kanezawa a22b00e23d Dynamic entry support (#3634)
* enable to set a function to entry option

* add tests for entry function

* fix style

* fix identifier and readableIdentifier of MultiModule

* use arrow functions

* use arrow function

* remove incorrect new operators

* fix Validation tests
2017-01-09 01:31:49 -06:00
Eduard Kyvenko 29a1b54564 Added better validation for entry in option schema (#3567)
Added better validation for entry in option schema (#3567)

* Added better validation for entry in option schema

* Fixed option validation schema

* Improved error reporting for empty entry bundle

* Added a test for empty entry bundle
2017-01-03 23:23:57 -06:00
Sean Larkin 1c8c5b993a fix(RuleSet): allow array of functions returning either string or loader objects 2016-12-22 12:14:54 -06:00
Tobias Koppers f4ab7fc7e2 more performance improvements 2016-12-14 16:22:54 +01:00
Tobias Koppers da29d21ae4 performance improvements
breaking change: Module has now a "unbuild" method that must work correctly
2016-12-14 16:22:16 +01:00
Tobias Koppers c0b5515dbe Merge pull request #3477 from webpack/feature/validation
Improve validation errors
2016-12-14 14:30:11 +01:00
Tobias Koppers 3c1086303f Improve validation errors 2016-12-14 11:34:57 +01:00
Tobias Koppers 37b7474651 Refactoring, make options simpler
breaking change: performance options changed
2016-12-14 11:33:57 +01:00
Sean Larkin a01578ab7d chore(performance): update schema description 2016-12-07 17:22:13 +01:00
Sean Larkin 774a89b583 feat(perfbudgets): added errorOnHint flag defaulting to false for opt-in 2016-12-07 17:22:13 +01:00
Sean Larkin 000dae1889 fix(tests): Updated tests across the board to work with perf budgets 2016-12-07 17:22:13 +01:00
Sean Larkin 0f0bdff0e1 fix(syntax): fixed edge case where assets do not exist, and added schema 2016-12-07 17:21:23 +01:00
Vignesh Shanmugam d3f2927d77 normalize asset size and produce warnings for performance 2016-12-07 17:21:19 +01:00
Sean Larkin 52bfdab526 feat(perf): added initial setup for perf plugins, need to configure test cases and stats output based on perf props 2016-12-07 17:21:17 +01:00
Tobias Koppers efa3fc058b added resourceQuery condition
added function use to schema
2016-11-23 12:12:32 +01:00
Kees Kluskens 0ddf5fdb5a Allow use of booleans in the `externals` option
Fixes #3299
2016-11-19 16:47:40 +01:00
Tobias Koppers b87bfc0399 added strictModuleExceptionHandling option
fixes #1729
2016-11-16 13:09:38 +01:00
Samuel Reed 29a08f00d5
fix(schema): Remove `uniqueItems: true` from `noParse`
Fixes #3284

Note: this should technically be possible to use, but
`uniqueItems` is broken in ajv; see
https://github.com/epoberezkin/ajv/issues/342

Regardless it is better to fix this bug, and there is technically
no reason why identical noParse RegExps are wrong, just superflous.
2016-11-14 11:37:44 -06:00
Kees Kluskens 2dee91b2f7 Add extra types to scheme that previously didn't trigger an error 2016-11-04 00:22:12 +01:00
NejcZdovc 9d789598e9 Added missing properties 2016-10-09 20:18:53 +02:00
Gregory Waxman 259cf68b90 Adds empty into schema for node (#3034)
Support for empty was broken through the schema, so I've added it back.
2016-09-21 00:24:38 +02:00
Tobias Koppers 63f24e1daf added some missing schema entries 2016-09-20 19:53:56 +02:00
Tobias Koppers 8a373442c9 fixed oneOf in rules 2016-09-20 19:39:15 +02:00
Tobias Koppers 4d9d79c57e renamed enforce left/right to pre/post 2016-09-20 19:39:07 +02:00
Gajus Kuizinas 1c136db956 fix: use anyOf in place of oneOf where intended 2016-09-20 11:37:16 +01:00
Gajus Kuizinas 96fedd9124 style: indent json using rules in editorconfig; sort keys
See 8c3d97d933 (commitcomment-19093805)
2016-09-20 11:36:08 +01:00
Tobias Koppers 7d52b00bd4 updated schema for removed pre and post loaders 2016-09-20 00:54:46 +02:00
Tobias Koppers c675067bcf fixed some validation stuff 2016-09-19 21:57:12 +02:00
Tobias Koppers 8c3d97d933 add test
better error messages
validate array
more options in schema
stricter schema
fix some old configs
2016-09-19 00:54:35 +02:00
Gajus Kuizinas c83f869ed3 fix: devtool can have value false
3df89413e2/lib/WebpackOptionsDefaulter.js (L11)
2016-09-17 20:21:07 +01:00
Gajus Kuizinas be9c5efb5e feat: add JSON schema for "stats" property
Based on https://github.com/webpack/webpack/pull/2974#issuecomment-245700692 and 3df89413e2/lib/Stats.js (L765-L805).
2016-09-17 20:21:07 +01:00
Gajus Kuizinas 68460a0586 feat: add JSON schema for "name" property 2016-09-17 20:21:07 +01:00
Gajus Kuizinas 56de487c4f style: convert indentation to tabs 2016-09-17 20:21:07 +01:00
Gajus Kuizinas 291fc3b8b2 fix: add JSON schema for output.auxiliaryComment 2016-09-17 20:21:07 +01:00
Gajus Kuizinas 57ea1eabcb chore: define webpack options schema 2016-09-17 20:21:07 +01:00