ahabhgk
3afed0618b
fix module rule output path
2024-06-10 22:29:15 +08:00
alexander.akait
4809421990
refactor(types): more
2023-06-21 19:00:24 +03:00
alexander.akait
fb7c0c637a
refactor: strict types for assets and json and other
2023-05-25 01:09:00 +03:00
Sean Larkin
e958ac552b
refactor(types): Improve module type strictness and refactor module type string usages in module subclasses
2023-05-04 23:19:11 +00:00
alexander.akait
5765c9abc1
fix: bugs
2023-04-13 03:10:12 +03:00
Ivan Kopeykin
5f86eb58da
add asset modules concatenation
2022-03-11 16:59:28 +03:00
Tobias Koppers
936fa78495
avoid hasing the default encoding
2022-02-28 09:45:00 +01:00
Tobias Koppers
224964601d
improve hashing
2022-02-22 12:23:24 +01:00
Tobias Koppers
5a446d81e3
Merge branch 'main' into fix-14839
2022-02-22 11:12:13 +01:00
Ivan Kopeykin
f1d329cc0e
use nonNumericOnlyHash function for contentHash
2022-02-01 20:10:45 +03:00
Tobias Koppers
17f317bef2
store url as Buffer to avoid serialization warnings
...
makes deserialization cheaper
2022-01-21 15:52:51 +01:00
Tobias Koppers
e2bfe58994
nitpicks
2022-01-19 09:18:17 +01:00
Karlis Gangis
2fc4c8da1b
Add 'outputPath' configuration option for resource asset modules
2022-01-18 13:45:42 +02:00
evilebottnawi
eaaccf9d6c
fix: handle content from loaders
2022-01-17 18:52:55 +03:00
evilebottnawi
420e8b6815
fix: logic
2022-01-17 18:47:49 +03:00
evilebottnawi
f21930b588
fix: handle content from loaders
2022-01-12 19:27:37 +03:00
Tobias Koppers
ccecc17c01
Merge pull request #14894 from webpack/feature/css-modules
...
Initial work towards native css support
2021-12-17 23:43:51 +01:00
evilebottnawi
3a5de5b421
fix: info merging for asset modules
2021-12-06 15:15:48 +03:00
Tobias Koppers
8ae9507196
add support for url() in css
2021-12-03 08:46:24 +01:00
Tobias Koppers
77b5589c1a
css generation and hmr
2021-12-03 08:46:22 +01:00
Ivan Kopeykin
8d8e2e3fa4
fix asset module hash
2021-11-29 19:37:32 +03:00
Ivan Kopeykin
2b87b64de9
rename to runtimeTemplate.concatenation
2021-11-22 18:11:03 +03:00
Ivan Kopeykin
1bdc48e32b
improve runtime template
...
- add optional chaining support check,
- add template string support check,
- use template string in asset generator
2021-11-21 21:18:11 +03:00
Jan Potoms
d9c09ee7f2
Fix generator publicPath behavior when empty string
2021-07-24 17:02:09 +02:00
Tobias Koppers
daa40670fc
keep original encoding when transforming data url to data url
2021-07-16 20:35:19 +02:00
evilebottnawi
c45064f912
fix: encoding
2021-07-16 18:04:30 +03:00
evilebottnawi
478457ba48
fix: case insensitivity
2021-07-16 17:17:23 +03:00
evilebottnawi
d25cbc5211
fix: data URI for `image/svg+xml`
2021-07-16 17:14:02 +03:00
Tobias Koppers
e6f098903f
fixes #13691
2021-07-05 11:22:13 +02:00
Tobias Koppers
973edfbd1b
support data urls as input in `new URL`
2021-05-19 11:30:09 +02:00
Tobias Koppers
b0fa9ccada
pretty files
2021-05-11 09:31:46 +02:00
Tobias Koppers
7f362c816f
merge related info correctly
2021-03-22 15:08:06 +01:00
Tobias Koppers
c5fa7510f2
remove `output.assetModulePublicPath` as it would be redundant to `module.generator.asset.publicPath`
...
add test case for assetInfo merging
2021-03-22 15:05:50 +01:00
xiaoxiaojx
55fd79ee6a
feat: support assetModulePublicPath
2021-03-20 17:53:01 +08:00
Tobias Koppers
7572217e97
add `emit` option for asset modules
...
fixes #12474
2021-03-11 18:45:34 +01:00
Tobias Koppers
85a6eee0bb
move parser.filename back to generator.filename
2021-03-11 17:19:11 +01:00
Tobias Koppers
f93aacd55f
move filename processing from asset generator to parser
...
remove memory leak from asset generator
2021-03-11 10:40:03 +01:00
Tobias Koppers
d9ef8551c0
fix caching of asset modules
2021-02-04 14:13:44 +01:00
Tobias Koppers
aac7f2e619
allow to configure parsers and generators globally
...
get plugin schemas from root schema
normalize module.parser/generator
add test case
2021-01-05 12:08:30 +01:00
Tobias Koppers
2ec90b3687
add asset info for `sourceFilename` and `javascriptModule`
2020-10-22 10:47:23 +02:00
Tobias Koppers
5cceb52245
assets use filename relative to context
...
add test case with nested paths
2020-08-29 01:59:47 +02:00
evilebottnawi
70b44a7f86
feat: support `[query]` for asset modules
2020-08-03 23:08:01 +02:00
Tobias Koppers
1265765141
polish, types
2020-07-27 22:41:04 +02:00
Tobias Koppers
e16bdfda6c
refactor used exports analysis, hashing, code generation, optimizations
...
to keep track of runtimes, used exports depending on runtime
modules can have different hashes and generated code depending on runtime
chunks are only considered as equal for MergeDuplicateChunks and SplitChunks when exports used in contained modules are equal
added `optimization.usedExports: "global"` to opt-out from used exports analysis per runtime
added `splitChunks.usedExports` and `splitChunks.cacheGroups[x].usedExports` to enable/disable used exports comparing for modules
`splitChunks.usedExports` defaults to `true` in production
2020-07-27 22:40:44 +02:00
Tobias Koppers
36cf3039aa
use content hashes for assets
2020-07-20 08:45:27 +02:00
evilebottnawi
bebd874cde
refactor: migrate on `mime-types`
2020-02-25 15:03:21 +03:00
Sergey Melyukov
b9c50fa0e4
fix pr comments
2020-01-23 13:27:12 +03:00
Sergey Melyukov
c7dd45b16f
generator.assetFilename -> generator.filename
2020-01-22 16:19:45 +03:00
Sergey Melyukov
68126cf1fc
override filename for asset modules
2020-01-22 16:08:29 +03:00
Tobias Koppers
b87b948406
show error when mimetype is missing
2019-12-23 17:44:41 +01:00