Tobias Koppers
c77ec391d2
revert afterStartup and trigger prefetch before startup
...
This makes more sense as startup could take a while
and we can use the time to fetch some resources
2018-06-04 18:10:00 +02:00
Tobias Koppers
db668b7549
move fake document to ConfigTestCases
...
minor style issues
add test case
2018-06-04 17:49:55 +02:00
Michael Loughry 👨💻
0d21ce197c
Address most of Sokra's comments
...
- [x] Don't emit prefetch code if not needed
- [x] Only affect StatsTestCase dealing with prefetching
- [x] Fix existing prefetch test case
- [ ] Trigger prefetch after startup code runs
- [ ] Add new test(s)
2018-06-01 10:51:39 -07:00
Michael Loughry 👨💻
8a995da749
Split the map among the chunks
2018-05-30 15:36:50 -07:00
Michael Loughry 👨💻
685cbcdf54
Initial rework per sokra's suggestion
2018-05-30 14:36:53 -07:00
Michael Loughry 👨💻
e483682637
Revert "Prefetch and preload from entry chunk."
...
This reverts commit eefacf3f2a .
2018-05-30 10:17:19 -07:00
Michael Loughry 👨💻
8636670169
Revert "Add output.entryPrefetchFunction option, and don't immediately prefetch"
...
This reverts commit b642403d86 .
2018-05-30 10:17:16 -07:00
Michael Loughry 👨💻
d26617a0ff
Revert "Run prettier"
...
This reverts commit 7458526759 .
2018-05-30 10:17:07 -07:00
Michael Loughry 👨💻
7458526759
Run prettier
2018-05-29 17:15:39 -07:00
Michael Loughry 👨💻
b642403d86
Add output.entryPrefetchFunction option, and don't immediately prefetch
...
Rather than calling the prefetch function on its own during bootstrap, this change exposes the function as a function that can be called from the compiled code.
2018-05-29 16:58:30 -07:00
Michael Loughry 👨💻
eefacf3f2a
Prefetch and preload from entry chunk.
...
Following up on @sokra's work in #7056 , this change addresses #7084 to have webpack prefetch and preload designated chunks from the entry chunk.
2018-05-29 15:51:10 -07:00
Florent Cailhol
2a9452e51b
Add brackets for multiline if/for statements
2018-05-29 15:45:44 +02:00
aleen42
9e136cd5d4
fix: proper way for inner declaration of a function. #7263
...
Use a varaible declaration outside a condition block instead, according to https://eslint.org/docs/rules/no-inner-declarations
2018-05-29 14:10:07 +08:00
Tobias Koppers
9791c0b5c8
fix spacing
2018-05-15 08:32:08 +02:00
Krzysztof Czopp
bbb9f38b71
fix: ReferenceError: onScriptComplete is not defined when using HMR on Firefox 45
2018-05-11 16:22:27 +01:00
Tobias Koppers
0a6ba9552e
avoid injection jsonpScriptSrc function when not needed
...
fixes #7185
2018-05-04 12:47:27 +02:00
Tobias Koppers
3417da594d
preload in parallel to script download
2018-04-16 19:35:02 +02:00
Tobias Koppers
17eb5b4700
rename priority to order
2018-04-16 18:00:34 +02:00
Tobias Koppers
9cb1a66317
add support for link preload/prefetch
...
`import(/* webpackPrefetchPriority: 10 */ "...")`
`import(/* webpackPreloadPriority: 10 */ "...")`
2018-04-16 11:29:25 +02:00
Florent Cailhol
f1092ad516
Update prettier toolchain
2018-03-26 16:56:10 +02:00
Tobias Koppers
296542ed79
add [contenthash] support
2018-03-24 12:08:36 +01:00
Florent Cailhol
3983803d30
Destructure 'require' to improve readability
2018-03-22 12:05:58 +01:00
howdy39
d628f90075
Add end of statement semicolon
2018-03-21 14:48:08 +09:00
EugeneHlushko
422236f0c4
fix(bug) #5964 convert MS into S for scripts timeout attr
2018-03-18 13:44:32 +02:00
rhysd
81e47b6eaf
Fix typos
2018-03-13 18:05:58 +09:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +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
45f8a28b44
Merge branch 'master' into next
...
# Conflicts:
# lib/JsonpMainTemplatePlugin.js
# lib/NoEmitOnErrorsPlugin.js
2018-01-04 20:59:34 +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
3e6aaf9b67
fix mispelled hook
2017-12-23 05:41:57 -08:00
Sean Larkin
ad10141c38
feat(tapable): convert JsonpMainTemplatePlugin to use .tap
2017-12-22 22:13:13 -08:00
Tobias Koppers
16ee68b5f9
make all methods on Template static
2017-12-07 09:49:50 +01:00
Tobias Koppers
56328a7cab
upgrate tapable in Templates
2017-11-28 18:43:01 +01:00
Tobias Koppers
6bb24367b2
Merge branch 'master' into next
...
# Conflicts:
# lib/JsonpMainTemplatePlugin.js
# test/WebWorkerMainTemplatePlugin.unittest.js
# yarn.lock
2017-11-27 08:59:30 +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