Commit Graph

599 Commits

Author SHA1 Message Date
Tobias Koppers b4860ccebb refactor chunk id plugins 2018-09-05 14:28:52 +02:00
Tobias Koppers 51a13926ad Merge tag 'v4.17.2' into next
4.17.2
2018-09-03 20:06:19 +02:00
Tobias Koppers b87e93221b add type option to cacheGroup to select by module type 2018-09-03 10:36:24 +02:00
Tobias Koppers 1b886ee342 improve prettier and lint config and performance 2018-08-24 16:57:16 +02:00
Tobias Koppers c21d59f783 Merge tag 'v4.17.0' into next
4.17.0
2018-08-21 11:02:16 +02:00
Kevin Purnelle 6235e99248 feat(IgnorePlugin): allow user to provide his own check functions
The user can provide checkResource and checkContext functions that
will be called with current resource or context respectively.

These functions should return a boolean to decide whether the module
should be ignored or not.

Now the constructor can accept a single option object.

```
const resourceRegExp = /a_regex/
const contextRegExp = /another_regex/

// before:
new webpack.IgnorePlugin(resourceRegExp, contextRegExp)

// alternative:
new webpack.ignorePlugin({resourceRegExp, contextRegExp})
```

Note that from Webpack 5, only passing an object will be allowed,
so we could encourage people to migrate already.
2018-08-14 17:20:10 +02:00
Florent Cailhol a945054079 Hide modules that are not emitted in stats 2018-08-09 20:22:09 +02:00
Tobias Koppers 5e72a6505a remove deprecated optimization options
and update test cases
2018-07-16 10:32:02 +02:00
Ed Morley 8fcecf38b0 Correct moduleIds schema description
Fixes the typo in #7686.
2018-07-13 13:27:39 +01:00
Sebastian Werner 9d7764aec5
Relaxed type check for hashDigest to allow other non NodeJS-native digest methods e.g. base62. 2018-07-12 12:40:08 +02:00
Tobias Koppers 3366421f17
Merge pull request #7663 from webpack/feature/automatic-name-prefix
automaticNamePrefix and name merging bugfix
2018-07-10 20:45:52 +02:00
Tobias Koppers 3fc4eb752f add new options moduleIds and chunkIds
deprecate namedModules, hashedModuleIds, namedChunks
add a lot of TODOs for webpack 5
split OccurenceOrderPlugin into separate plugins for modules and chunks
add NaturalChunkOrderPlugin and enable it in development
2018-07-09 15:06:19 +02:00
Tobias Koppers 14968acc00 add automaticNamePrefix option
allow automaticNameDelimiter on cacheGroup level
2018-07-05 14:13:13 +02:00
Tobias Koppers fb2c24bf76 add `splitChunks.maxSize` option
add `splitChunks.fallbackCacheGroup`
add `splitChunks.hidePathInfo`
move `contextify` into utils
add some types
2018-07-04 10:45:02 +02:00
Tobias Koppers 5c604f93f6
Merge branch 'master' into feat-implement-option-for-hashed-module-ids-plugin 2018-06-07 14:21:09 +02:00
Tobias Koppers 8e3be48da4 allow to disable wasm import mangle
disable it by default (temporary)
2018-06-05 23:49:02 +02:00
Tobias Koppers 78b31936c3 add checkWasmTypes flag, enabled it only in production 2018-06-04 20:14:08 +02:00
evilebottnawi c222a6f33b feat: implement option for `HashedModuleIdes` plugin 2018-05-25 16:41:20 +03:00
Aliaksei Sapach 6c0c52558c feat: support tree shaking in DllPlugin
This change introduces a new `entryOnly` flag to the DllPlugin options which limits the exposed modules to only those configured as entry points. This allows module concatenation and dead code removal optimizations to take place.
2018-05-18 22:57:29 +03:00
Philipp Klein d6efad856b Allow serve property in webpack configuration
The server property is used to configure webpack-serve
(https://github.com/webpack-contrib/webpack-serve).
Also adapt tests.

Fixes #7306
2018-05-15 16:12:54 +02:00
Tobias Koppers 687c03869f
Merge pull request #7270 from webpack/feature/banner_function
Allow banner to be specified as a function
2018-05-14 20:14:59 +02:00
Florent Cailhol 8488b882a4 Allow banner to be specified as a function 2018-05-10 18:19:32 +02:00
byzyk d50f00db87 fix: allow array of strings for library.root 2018-05-03 15:48:17 +04:00
SlavaB 71a12c8bc1 Add tests for namedChunkGroups 2018-04-24 19:01:02 +03:00
Tobias Koppers 8d8da4cdff Merge branch 'master' into bump_prettier 2018-03-29 11:48:02 +02:00
Tobias Koppers 0f70fcb99f
Merge pull request #6791 from storybooks/spilt-chunks-selector
Support selector function as optimization.splitChunks.chunks option
2018-03-29 11:40:07 +02:00
Tobias Koppers b30de38eb5
Merge pull request #6672 from EugeneHlushko/fix/6639
fix(bug): chunkFilename as function doesn't work
2018-03-29 11:01:36 +02:00
Hypnosphi 1677144faf Allow filter function in `optimization.splitChunks.cacheGroups[name].chunks` 2018-03-26 22:18:46 +03:00
Florent Cailhol f1092ad516 Update prettier toolchain 2018-03-26 16:56:10 +02:00
Hypnosphi f804ff06be Support selector function as optimization.splitChunks.chunks option 2018-03-18 16:51:06 +03:00
Tobias Koppers f99f96da6b rename variable, use includes instead of indexOf 2018-03-18 09:43:28 +01:00
byzyk b61540e852 fix prettier 2018-03-18 10:00:55 +04:00
Bohdan Khodakivskyi b8b11bf600
Merge branch 'master' into fix/6742 2018-03-18 09:58:49 +04:00
Fernando Montoya 57ea856cc8
misc: Add schemas to ESLint and Prettier commands 2018-03-15 12:47:24 +01:00
byzyk f513065227 fix: throw validation error when exclamation mark was found in path 2018-03-15 12:24:40 +04:00
byzyk a515918bbe wip: check if ! is present in path 2018-03-14 18:54:13 +04:00
byzyk 13b80be3ba fix: make excludeModules accept booleans 2018-03-14 09:52:16 +04:00
Manuel Bauer bda8d52810 Added chunkFilenameDelimiter option for SplitChunksPlugin: Applied requested changes 2018-03-12 10:07:31 +01:00
Manuel Bauer 36db321e9c Added chunkFilenameDelimiter option for SplitChunksPlugin 2018-03-09 10:12:23 +01:00
Tobias Koppers ae2ae4e504
Merge pull request #6640 from clarkdo/module-assets
fix: module assets is in buildInfo
2018-03-05 16:31:17 +01:00
EugeneHlushko 73d418a5a5 fix(bug): chunkFilename as function doesn't work 2018-03-05 12:27:08 +02:00
Clark Du 81235e1331 Add stats.moduleAssets to show assets inside modules in the Stats 2018-03-04 13:39:05 +08:00
Tobias Koppers ecb65aa75a allow to configure filename for splitted chunks
#6598
2018-03-02 10:14:25 +01:00
Josh Soref 64fa1d4e76 spelling: extensions 2018-02-26 02:28:31 +00:00
Josh Soref 8728659ada spelling: concord 2018-02-26 02:27:08 +00:00
Tobias Koppers f34fe5383f
Merge pull request #6532 from webpack/bugfix/issue-6426-name
allow name: false for splitChunks
2018-02-21 14:21:51 +01:00
Michael Ciniawsky 8a888cf416 fix(schemas/plugins): rm unnecessary `id`'s 2018-02-21 06:58:39 +01:00
Tobias Koppers dcc0997605
Merge pull request #6523 from webpack/next
Merge a few PR that were merged to be wrong branch
2018-02-20 15:13:51 +01:00
Tobias Koppers 244d27a42d improve way of getting combinations of chunks
we no longer require a complexity limit -> maxComplexity removed
2018-02-17 10:16:32 +01:00
Tobias Koppers 1e73752fb2 improve chunk splitting
by also trying to select combinations of module chunks
(limited by complexity)
fix size ordering (was reversed)
add chunk cound ordering
2018-02-17 07:01:00 +01:00
EugeneHlushko f33cf76608 Improvement: add schema for profiling plugin options, remove todo item: add docs, rename option 2018-02-14 10:29:29 +02:00
EugeneHlushko 97cd2dde70 Improvement: add schema for profiling plugin options, remove todo item: abs path to false 2018-02-14 09:49:15 +02:00
EugeneHlushko fb4b275dc9 Improvement: add schema for profiling plugin options, remove todo item 2018-02-13 19:13:07 +02:00
Tobias Koppers 9599e4eb61 fix typo: mergedDuplicateChunks -> mergeDuplicateChunks 2018-02-13 12:41:30 +01:00
Tobias Koppers 425a961bb6 allow name: false for splitChunks
#6426
2018-02-06 21:50:23 +01:00
Tobias Koppers b50a5b61c4
Merge pull request #6384 from benthemonkey/next
Add "single" option to RuntimeChunkPlugin
2018-02-05 17:35:55 +01:00
Ben Rothman 5ee61f8910 add "multiple" string option for runtimeChunk config 2018-02-01 11:11:16 -06:00
Tobias Koppers 9fde04d299 handle single option in options defaulter
change runtime chunk naming schema
2018-02-01 17:53:15 +01:00
Tobias Koppers 97d1a7bd06
Merge pull request #6404 from Hoten/feat-add-build-at
Add 'build at' time to webpack output
2018-02-01 17:32:37 +01:00
Francis John 99f100dae7 Add property to config schema 2018-01-31 20:17:30 -08:00
Connor Clark 5266a30808 add builtAt stats option. use locale string functions 2018-01-30 17:34:08 -08:00
Ben Rothman c26c872bb2 add "single" option to RuntimeChunkPlugin 2018-01-26 22:03:56 -06:00
Tobias Koppers b28435eb32 make default cache group explicit
add priority
using cacheGroups doesn't override default cache groups
2018-01-20 13:13:10 +01:00
Tobias Koppers 18ae73dad4 Refactor chunk graph
Chunks are now always in ChunkGroups
ChunkGroups have parents and children, Chunks no longer have this
AsyncDependenciesBlocks point to a ChunkGroup instead of a list of chunks
Entrypoint is now a ChunkGroup (extends from it)
move stuff graph modification methods into GraphHelpers
Change chunk id recording to source-based
Chunks have parents, siblings and children in Stats
rename AutomaticCommonsChunksPlugin to SplitChunksPlugin
add request property to origin (ChunkGroup)
remove moveToParent from AggressiveMergingPlugin
fix issues with AggressiveSplittingPlugin
remove CommonsChunkPlugin
add optimization.runtimeChunk (RuntimeChunkPlugin)
fix a filename bug for initial chunks
remove extract-text-webpack-plugin from test suite
add DebugHash to help debugging hash issues
fix issues with entry modules in different chunk as runtime
redo optimization.splitChunks options
Compilation.entrypoints is now a Map
Compilation.chunkGroups has been added
remove some unittests
update examples
update tests with CommonsChunkPlugin
2018-01-19 19:21:30 +01:00
Tobias Koppers acdabb1427 linting, comment and minor improvements 2018-01-10 19:22:25 +01:00
Tobias Koppers 85acfeb1c2 allow to use new options minSize, maxRequests 2018-01-10 18:58:27 +01:00
Tobias Koppers b34663cb2d add more config options
fix bugs
2018-01-10 18:58:27 +01:00
Tobias Koppers 417044f065 add AutomaticCommonsChunksPlugin
enable it by default for async chunks
add options for initial chunks
2018-01-10 18:58:26 +01:00
Tobias Koppers 45f8a28b44 Merge branch 'master' into next
# Conflicts:
#	lib/JsonpMainTemplatePlugin.js
#	lib/NoEmitOnErrorsPlugin.js
2018-01-04 20:59:34 +01:00
Tobias Koppers ff908decb3
Merge branch 'next' into feature/add-entry-default-value 2018-01-03 15:41:45 +01:00
Tobias Koppers 6d0923effb
Merge pull request #6200 from webpack/feature/output-global-object
add output.globalObject configuration option
2018-01-02 14:13:12 +01:00
Tobias Koppers 2e916e6205 add output.globalObject to schema 2018-01-02 09:46:29 +01:00
Neehar Venugopal 06c19e9565 add support for new output option jsonpScriptType 2017-12-31 17:13:59 +05:30
Sean Larkin 4b381b1eaa Merge branch 'next' into feature/add-entry-default-value 2017-12-30 18:23:53 -06:00
Tobias Koppers 1886b7a5cb Merge branch 'master' into next
# Conflicts:
#	bin/webpack.js
#	lib/Compilation.js
#	yarn.lock
2017-12-29 11:17:10 +01:00
Tobias Koppers d95f93f8cb add output.globalObject configuration option
remove deprecated atom and electron target
add self libraryTarget
add self external type
2017-12-27 18:46:37 +01:00
Sean Larkin 1fdc37764e
Merge branch 'next' into feature/add-entry-default-value 2017-12-22 14:50:42 -08:00
jaketodaro fb4070442a support functions for templated string config properties
Any config property that accepts a templated string (e.g. '[name].js')
can now accept a function that returns a templated string.

```
{
    output: {
        filename: () => '[name].js'
    }
}
```

Closes #6098
2017-12-22 07:28:16 -08:00
Tobias Koppers 84a3b2cd17
Merge pull request #6146 from EugeneHlushko/feature-xxhashjs
Feature: Non-crypto hashing algorithm and opt-in through config
2017-12-21 08:48:52 +01:00
Tobias Koppers ba00d7495a fix unnecessary module concatenation
allow to display nested modules in stats
2017-12-20 20:35:16 +01:00
EugeneHlushko 307566a7a1 Feature: Add an option to provide output.hashFunction as a function 2017-12-19 19:53:08 +02:00
Sean Larkin 5e8700f5c5 feat(defaults): add fixed defaults 2017-12-18 12:18:07 -08:00
Jason Staten af0733fed6 Add description for `mode` option. Fixes #6135
Changed from being a copy of `amd` description.
2017-12-15 14:25:21 -07:00
Tobias Koppers 5cbd6b20dd allow to set sideEffects from rules 2017-12-14 13:08:57 +01:00
Tobias Koppers 2148f556a4 Enable minimizing in production mode 2017-12-14 00:06:56 +01:00
Tobias Koppers 758f1eb464 Merge branch 'master' into next 2017-12-12 14:45:09 +01:00
Rowan Oulton 6f85f9b386 Add ident propertry to list of permissible properties of Rule.use
As per https://webpack.js.org/configuration/module/#useentry
2017-12-07 09:47:55 -08:00
Tobias Koppers eff2f57fa5 fix merge issue (missing properties in schema) 2017-12-04 14:54:50 +01:00
Tobias Koppers bfa4b49858 Merge branch 'master' into next 2017-12-04 14:36:07 +01:00
Tobias Koppers fabe631a83 Only generate portable records when needed 2017-12-01 11:27:03 +01:00
Tobias Koppers a71284eb79 Add missing watchOptions properties to schema 2017-11-30 15:55:37 +01:00
Tobias Koppers 9b8a1322c5 Upgrade enhanced-resolve version 2017-11-29 16:34:49 +01:00
Tobias Koppers d7184b281c add new namespace option to schema 2017-11-28 10:04:57 +01:00
Tobias Koppers dae9de6595 Merge branch 'next' into feature/validate-plugin-options
# Conflicts:
#	lib/SourceMapDevToolPlugin.js
#	lib/optimize/AggressiveSplittingPlugin.js
#	yarn.lock
2017-11-28 09:59:59 +01:00
Tobias Koppers 9870165069
Merge pull request #6008 from EugeneHlushko/bugfix-issue-6003
Lookup the provided plugins on the options, throw for invalid arguments.
2017-11-27 07:48:07 +01:00
EugeneHlushko 0c9707f832 Add options.plugins schema validation: CR changes on wording 2017-11-26 13:42:18 +02:00
EugeneHlushko 70c50ea8f1 Add options.plugins schema validation, ensure apply method is present. Add tests 2017-11-24 18:54:48 +02:00
Tobias Koppers 2201b860a5 Add mode option and choose defaults depending on mode
add optimization options
use development mode for watch/hot/config tests
use production mode for integration/stats tests
create output directory if not existing
move __esModule to runtime
fix dependency behavior for cases without usedExports
2017-11-24 08:17:17 +01:00
Tobias Koppers 5840039701 add chunkCallbackName from WebWorker to schema 2017-11-21 12:57:11 +01:00
Tobias Koppers 3ded46bed4 fix typo 2017-11-20 13:04:33 +01:00
Tobias Koppers 0a535b2a4f fix required properties 2017-11-20 10:38:48 +01:00
Tobias Koppers d9d19596e5 Added documentation and fix errors 2017-11-20 10:17:34 +01:00
Sergey Petushkov 7950e3da5d Fix lint errors 2017-11-19 13:31:33 +01:00
Sergey Petushkov a07626aa71 Fix indentation 2017-11-19 11:45:15 +01:00
Sergey Petushkov ac619960ac Merge remote-tracking branch 'upstream/master' into feature/validate-plugin-options
Conflicts:
	schemas/webpackOptionsSchema.json
2017-11-18 09:35:37 +01:00
Tobias Koppers 5e39ec46ee Allow to override resolve configuration 2017-11-18 08:12:35 +01:00
Tobias Koppers a53672d1a2 Merge branch 'master' into next
# Conflicts:
#	lib/EvalSourceMapDevToolModuleTemplatePlugin.js
#	lib/dependencies/HarmonyDetectionParserPlugin.js
#	lib/dependencies/HarmonyImportDependency.js
#	package.json
#	schemas/webpackOptionsSchema.json
#	test/Validation.test.js
2017-11-17 16:03:46 +01:00
Tobias Koppers 982e44f670
Merge branch 'next' into master 2017-11-16 14:17:29 +01:00
Tobias Koppers e481ea53fd add linting for schemas
add missing descriptions in schema
2017-11-16 13:15:15 +01:00
Sergey Petushkov cdd593b847 Rename schemas; Make imports less verbose 2017-11-12 09:48:08 +01:00
Sergey Petushkov dcc09ee653 Run beautify on schemas 2017-11-12 09:48:08 +01:00
Sergey Petushkov 1065a6e46c Refactor plugins to use schema-utils; Remove unused 2017-11-12 09:48:08 +01:00
Sergey Petushkov 744dbe9b95 Add validations to plugins 2017-11-12 09:48:08 +01:00
Tobias Koppers 00f2b5ede7 advanced module type refactoring
added json type
.mjs default to javascript/esm type
adjusted parser plugins to react on module type
2017-11-11 19:27:19 +01:00
Tobias Koppers 4597805222
Merge branch 'next' into master 2017-11-11 19:00:05 +01:00
Tobias Koppers 41a1d602e1 added WebAssembly Proof of Concept 2017-11-10 09:17:11 +01:00
Tobias Koppers 122e7dc649 Merge branch 'master' into next
# Conflicts:
#	package.json
#	test/HarmonyModulesHelpers.unittest.js
#	test/StatsTestCases.test.js
#	yarn.lock
2017-10-19 21:31:35 +02:00
Stephan Badragan f925032d5a adding `output.devtoolNamespace` option
When loading multiple libraries built with webpack, you can run into
collisions of the sourcemap file paths. For examle, both have
"webpack:///src/index.js".

This change addresses the problem by introducing a new output option
`output.devtoolNamespace` which defaults to `output.library` when
not specified. The defaults moduleFilenameTemplates in all the
sourcemap plugins have been modified to start with:
"webpack://[namespace]/...", where [namespace] will be replaced by
the `output.devtoolNamespace`.

Notice that there are only two slashes following "webpack:" now.
This is to make it behave just as before when not building with a
namespace. When building with a namespace you only get the two
slashes, but from what I've seen the chrome dev tools only care
about the first 2 slashes anyways.

Discussed with sokra here:
https://github.com/webpack/webpack/issues/5767
2017-10-18 01:14:40 +01:00
Tobias Koppers 168f92330e Merge pull request #5842 from jbottigliero/bugfix/stats.all
adds stats.all option the the webpackOptionsSchema
2017-10-17 21:31:28 +02:00
Joe Bottigliero c3d77bbcf3 Update webpackOptionsSchema.json
- adds `"type": "boolean",` for `stats.all`
2017-10-17 10:47:45 -05:00
Joe Bottigliero eb00961796 adds stats.all option the the webpackOptionsSchema 2017-10-17 10:31:38 -05:00
Tobias Koppers c4bb0f410b add missing stats keys
fixes #5839
2017-10-17 16:43:29 +02:00
Tobias Koppers 82f42e2c67 Merge branch 'master' into next 2017-10-17 12:38:38 +02:00
Joe Bottigliero 576187541a [fix] webpackOptionsSchema.json
- fixes failing stats tests by adding various options to the webpackOptionsSchema.json as well as fixing invalid options provided in test configurations.
2017-10-13 21:29:35 -05:00
Joe Bottigliero e0d4501fab [fix] webpackOptionsSchema
- Updates webpackOptionsSchema "stats" object to include "additionalProperties: false"
- Adds missing stats options
- Adds test for ensuring new stats options fail the schema check (if not included)
2017-10-13 17:12:24 -05:00
Tobias Koppers 4105297de6 Merge branch 'next' into deprecation/webpack-3 2017-09-11 11:26:44 +02:00
Tobias Koppers f9bf8a9085 Limit the number of parallel processed modules
fixes #3164
fixes #3166
2017-08-11 16:11:17 +02:00
Ricky Lippmann 05f7b2d5b7 Add excludeModules and allow multiple options as fallbackchain. 2017-07-27 18:33:10 +02:00
Mike Sherov bdddee2b91 Ignore context in resolve caching when resolve or resolveLoader plugins are provided. 2017-06-28 08:37:58 -04:00
Tobias Koppers 3e3b7489b4 Merge pull request #4883 from AndersDJohnson/library-target-umd-names-per-target
feat: library target UMD supports names per target
2017-06-21 22:51:27 +02:00
Tobias Koppers 9cf6d51df6 disallow module.loaders 2017-06-14 14:42:31 +02:00
Tobias Koppers 7f8d5b2aa5 Merge branch 'master' into next 2017-06-05 11:07:44 +02:00
Tobias Koppers 7719cc6dd7 Merge pull request #4995 from jchip/master
Support turn off  NodeSourcePlugin with false option
2017-06-05 09:55:43 +02:00
Joel Chen 8fec262c8c Support turn off NodeSourcePlugin with false option 2017-06-02 23:04:23 -07:00
Suman 6c2f378fac Adding function support to noParse 2017-06-02 20:28:54 -04:00
Tobias Koppers 302289ce24 Merge branch 'master' into next 2017-06-02 16:28:22 +02:00
Tobias Koppers de8fc51a6f allow to export any property/export of the bundle
fixes #3929
2017-06-02 14:52:41 +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
Anders D. Johnson 2ec4b5cd19
fix: update schema to support library as object 2017-05-29 13:49:34 -05:00
Tobias Koppers d8539561fd add optimization bailout info
track optimization bailout in concat plugin
2017-05-28 15:25:07 +02:00
Tobias Koppers d967a4623c add `module.strictThisContextOnImports` option
to allow spec-comforming behavior this context on
called imported harmony functions
2017-05-21 09:23:35 +02:00
restrry f2264e4202 make chunkLoadTimeout option cofigurable 2017-05-11 10:41:38 +02:00
Even Alander 958156ae42 moduleTrace added to webpackOptionsSchema.json 2017-04-29 19:43:15 +02:00
Samuel Reed 805c9fadf0
fix missing `hashSalt` from options schema 2017-04-15 11:39:49 -04:00
Tobias Koppers 7ee479579e Merge pull request #4381 from timse/add-suppressWarnings-functionality
Add suppress warnings functionality
2017-04-03 12:09:58 +02:00
Tobias Koppers 56d09ab65c Merge pull request #4533 from michael-ciniawsky/schema
fix(schema/absolutePaths): make absolute paths case insensitive
2017-03-24 22:28:10 +01:00
Tobias Koppers 10c44e5a94 fix extra newline in validation 2017-03-22 12:24:18 +01:00
Michael Ciniawsky c390700429 fix(schema/absolutePaths): make absolute paths case insensitive 2017-03-22 07:14:31 +01:00
Tim Sebastian 0dbb5958a1 add warnings filter option to options schema 2017-02-25 15:54:47 +11:00
Joe Haddad fa47a39107
Add strictExportPresence option 2017-02-22 21:06:43 -05:00
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