Skip to content

Commit c03293a

Browse files
committed
Add modules assets test
1 parent b815597 commit c03293a

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Hash: e6165e79d5ae833a8859
2+
Time: Xms
3+
Built at: Thu Jan 01 1970 00:00:00 GMT
4+
Asset Size Chunks Chunk Names
5+
155613d841c408f2a34b9c81cdfd3e8c.png 37.7 KiB [emitted]
6+
0.js 607 bytes 0 [emitted]
7+
main.js 6.76 KiB 1 [emitted] main
8+
Entrypoint main = main.js
9+
chunk {0} 0.js 99 bytes <{1}> [rendered]
10+
[0] ./node_modules/a/1.png 82 bytes {0} [built]
11+
[1] ./node_modules/a/index.js 17 bytes {0} [built]
12+
chunk {1} main.js (main) 12 bytes >{0}< [entry] [rendered]
13+
[2] ./index.js 12 bytes {1} [built]
14+
[0] ./node_modules/a/1.png 82 bytes {0} [built]
15+
[1] ./node_modules/a/index.js 17 bytes {0} [built]
16+
[2] ./index.js 12 bytes {1} [built]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import('a')
Loading

test/statsCases/modules-assets/node_modules/a/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
mode: "production",
3+
entry: "./index",
4+
stats: {
5+
chunks: true,
6+
chunkModules: true,
7+
modules: true
8+
},
9+
module: {
10+
rules: [
11+
{
12+
test: /\.png$/,
13+
use: ["file-loader"]
14+
}
15+
]
16+
}
17+
};

0 commit comments

Comments
 (0)