Commit Graph

135 Commits

Author SHA1 Message Date
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
evilebottnawi 07a50001f0 remove comment 2018-06-15 18:55:25 +03: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
Florent Cailhol 0743250281 Add a test case about nodeEnv 2018-06-04 09:49:08 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
evilebottnawi c222a6f33b feat: implement option for `HashedModuleIdes` plugin 2018-05-25 16:41:20 +03:00
Tobias Koppers 64925a80c7 remove request limit and decrease size limit in development mode
because this improves performance as more files are generated
which can be regenerated separately
2018-05-01 10:54:00 +02:00
Tobias Koppers c47150c42c Clone optimization config in Defaulter
#6565
2018-04-17 11:39:25 +02:00
bastimeyer 70d48256d7 Fix output.globalObject value in node-webkit 2018-04-14 21:27:24 +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
Tobias Koppers fc2feaf6d7
Merge pull request #6844 from swederik/issue-6843
Add handling for devtool source-map with library specified as Object
2018-03-26 15:47:14 +02:00
Erik Ziegler 7fcd28128a fix: Add handling for devtool source-map with library specified as Object (#6843) 2018-03-23 10:06:39 +01:00
Florent Cailhol e4808b2e57 Read 'browser' main field when target is 'electron-renderer'
Fixes #6811
2018-03-21 10:35:09 +01:00
Tobias Koppers c65fb74a26
Merge pull request #6736 from mc-zone/improvment/performance-falsy-at-non-web-target
Make the `performance` default to false while at non-web target. Close #6715
2018-03-14 11:52:34 +01:00
mc-zone 2ecd323a38 Adjusting the default of performance; improve tests to cover different mode and target. 2018-03-13 23:48:33 +08:00
mc-zone 7c0c1a089e Options: default performance to false if not the web/webworker target(#6715) 2018-03-12 21:16:01 +08: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
EugeneHlushko aa55324cfc fix(bug): don't default chunkFileName to a filename typeof function 2018-03-07 21:23:00 +02:00
EugeneHlushko f78cf75177 fix(bug): don't default chunkFileName to a filename typeof function 2018-03-07 09:56:04 +02:00
Tobias Koppers 4f399322ad
Merge pull request #6641 from tmilloff/master
Fix #6634
2018-03-06 12:25:19 +01:00
Jason Milloff 57c6c4323c Add requested changes from PR comments 2018-03-05 11:45:20 -05:00
Connor Clark 17d03c1b24 defaults: set source map option for UglifyJs to true if SourceMapDevToolPlugin exists #6627 2018-03-01 16:08:49 -08:00
Jason Milloff fc0b327d82 Fix #6634 2018-03-01 16:07:24 -05:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol 40ee8c76d2 Use MD4 for hashing 2018-02-22 11:27:11 +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
Sean Larkin 331c011009
Update WebpackOptionsDefaulter.js 2018-02-13 13:17:55 -08:00
Sean Larkin e8b9b22f45
Set nodeEnv to default to "production" 2018-02-13 12:50:16 -08:00
Tobias Koppers 9599e4eb61 fix typo: mergedDuplicateChunks -> mergeDuplicateChunks 2018-02-13 12:41:30 +01:00
Tobias Koppers 0f88f8db74
Merge pull request #6468 from webpack/bugfix/issue-6459
fixes #6459
2018-02-09 20:23:09 +01:00
Tobias Koppers 85ff5507a5 fixes #6459 2018-02-09 18:01:31 +01:00
Tobias Koppers 08f5ad9fb4
Revert "Wrap default entry property in array" 2018-02-09 16:48:39 +01:00
Sean Larkin 9df87ad3dc
Merge pull request #6394 from webpack/TheLarkInn-patch-1
Wrap default entry property in array
2018-02-06 08:01:41 +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
Sean Larkin 2a46d098d2
Wrap default entry property in array
This makes webpack-serve happier.
2018-01-26 16:06:24 -08: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 fabd1abb41 improvements from review by @ooflorent 2018-01-20 11:28:45 +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 7112943ca4
Merge pull request #6298 from EugeneHlushko/refactor/indexof-to-includes
Refactor/indexof to includes
2018-01-11 22:45:02 +01:00
EugeneHlushko 2aab060f26 Refactor: indexOf >< checks to includes 2018-01-11 18:58:39 +02: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
Neehar Venugopal 8eb0bb675e move default script type option to WebpackOptionsDefaulter 2018-01-04 20:00:50 +05:30
Tobias Koppers 002f45ae72 change "defaultedProduction" to undefined
inline mode file
fix testcase
2018-01-03 16:43:24 +01:00
Tobias Koppers ff908decb3
Merge branch 'next' into feature/add-entry-default-value 2018-01-03 15:41:45 +01:00