Moorthy Venkatraman
be39508aa2
Supplying extensions when constructing DllReferencePlugin
2016-09-19 21:56:02 +02:00
Tobias Koppers
c948c81f3e
added harmony test case
2016-09-19 21:13:32 +02:00
Tobias Koppers
808b32ac61
added test cases for extract-text-plugin
2016-09-19 21:13:32 +02:00
Tobias Koppers
159ed351e6
Merge pull request #3016 from SpaceK33z/upgrade-uglifyjs
...
Update uglify-js dep
2016-09-19 20:54:46 +02:00
Kees Kluskens
2b0973b98e
Update uglify-js dep
2016-09-19 20:03:56 +02:00
Tobias Koppers
9ad33d92db
Merge pull request #3013 from gajus/feature/use-json-schema-to-validate-webpack-config
...
Add schemas to package.json files
2016-09-19 16:55:16 +02:00
Gajus Kuizinas
6b9c449497
fix: add schemas to package.json files
2016-09-19 15:50:22 +01:00
Tobias Koppers
40a67f632c
Merge branch 'gajus-feature/use-json-schema-to-validate-webpack-config'
2016-09-19 00:55:00 +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
Tobias Koppers
f9b81a7509
make sure module moving don't hang in circular chunk dependencies
...
fixes #2990
2016-09-18 10:30:05 +02:00
Gajus Kuizinas
9e0a95e48b
fix: improve error phrasing
2016-09-17 20:22:59 +01:00
Gajus Kuizinas
4526824177
feat: utilise WebpackOptionsValidationError
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
91e36407ac
feat: define WebpackOptionsValidationError
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
31630644c4
chore: use 2 spaces indentation for JSON
...
https://github.com/webpack/webpack/pull/2974#discussion_r78160197
2016-09-17 20:21:07 +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
Gajus Kuizinas
c83f869ed3
fix: devtool can have value false
...
3df89413e2/lib/WebpackOptionsDefaulter.js (L11)
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
992f5c807e
feat: throw error with validationErrors property
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
bebc397123
fix: do not console.log in the API
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
ccf9da2171
fix: use LoaderOptionsPlugin to set updateIndex
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
f523b17449
fix: pass worker options using LoaderOptionsPlugin
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
9879466df6
fix: remove unsupported property "optimize"
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
76af4753fb
chore: add .json to .editorconfig
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
cee956dbb7
feat: log validation errors to the console
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
3ef4538f8d
feat: validate webpack options against a schema
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
79997455c6
feat: define validateWebpackOptions function
...
Define a function that is used to validate an object against webpackOptionsSchema.json.
2016-09-17 20:21:07 +01:00
Gajus Kuizinas
57ea1eabcb
chore: define webpack options schema
2016-09-17 20:21:07 +01:00
Tobias Koppers
17ca14ccd9
use inputFileSystem instead of real filesystem
2016-09-16 01:31:53 +02:00
Tobias Koppers
5910fefbcb
better explicit vendor chunk example using DllPlugin
2016-09-16 01:21:11 +02:00
Tobias Koppers
e896d14829
MultiCompiler with compilers depend on other
2016-09-16 01:20:34 +02:00
Tobias Koppers
530fad43b4
allow to pass abs path to manifest property of DllReferencePlugin
...
manifest is loaded on compilation
2016-09-16 01:19:50 +02:00
Tobias Koppers
a0a920d83f
added experimental plugin to set custom module ids
2016-09-16 01:18:21 +02:00
Tobias Koppers
d42d52b388
use specification order for chunks
...
fixes ##2998
2016-09-16 01:17:28 +02:00
Tobias Koppers
61972f42f9
fixed bugs in RuleSet, added tests
2016-09-15 08:39:53 +02:00
Tobias Koppers
78a2f699e2
beautify
2016-09-15 00:50:07 +02:00
Tobias Koppers
54aa3cd0d6
Merge pull request #2988 from matthewtoast/master
...
fix: Convert webworker template runtime to be Promise-based API
2016-09-15 00:27:52 +02:00
Tobias Koppers
39c76a4c41
need a higher version of loader-runner
2016-09-15 00:23:27 +02:00
Tobias Koppers
a53799c0ac
use new RuleSet matching instead of LoadersList
...
pass issuer via contextInfo
2016-09-15 00:22:10 +02:00
Tobias Koppers
ec262a4007
refactoring: moved parser instancation into NormalModuleFactory
...
breaking change: compiler.parser must no longer be used. Use this instead:
``` js
compiler.plugin("compilation", function(compilation, params) {
params.normalModuleFactory.plugin("parser", function(parser, parserOptions) {
parser.plugin(/* ... */);
});
});
```
required for #2978
2016-09-15 00:22:10 +02:00
Tobias Koppers
9c9b20af6d
better test cleanup
2016-09-15 00:22:10 +02:00
Tobias Koppers
afd11259b2
stricter linting and bug fixes
2016-09-15 00:22:10 +02:00
Matthew Trost
2e8f08f6ac
Convert webworker template runtime to Promise-based API
...
Fixes 'cannot call method then on undefined' error when using HMR with a config
whose target is "webworker".
Probably should have happened with 2245c4acca
2016-09-12 18:40:23 -04:00
Tobias Koppers
1f781c1899
removed duplicate -v alias for verbose
...
it means --version now
2016-09-09 14:52:56 +02:00
Tobias Koppers
37066fc692
fix another bug observed in #2977
2016-09-09 14:50:14 +02:00
Tobias Koppers
f47e920d22
fix --display-provided-exports
2016-09-09 14:31:02 +02:00
Tobias Koppers
c08d1b4f89
fixes #2977
2016-09-09 14:20:29 +02:00
Tobias Koppers
ac340bce1d
improved and fixed stats
2016-09-09 14:19:36 +02:00