Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(format): force chunk ID to be string #205

Merged
merged 1 commit into from
Dec 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions playground/named/a/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Named example - "a" version
===========================

It's the simplest config with the only chunk named with the constant string.
3,517 changes: 3,517 additions & 0 deletions playground/named/a/package-lock.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions playground/named/a/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "webpack-stats-explorer-playground-named",
"version": "1.0.0",
"description": "Playground configuration with named chunks plugin for Webpack Stats Explorer",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --config webpack.config.js --verbose --json 1> ../$(basename $(pwd)).json"
},
"author": "",
"license": "MIT",
"devDependencies": {
"webpack": "4.41.2"
}
}
Empty file added playground/named/a/src/index.js
Empty file.
8 changes: 8 additions & 0 deletions playground/named/a/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { NamedChunksPlugin } = require('webpack');

module.exports = {
entry: './src/index.js',
plugins: [
new NamedChunksPlugin((chunk) => 'foobar')
]
};
4 changes: 4 additions & 0 deletions playground/named/b/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Named example - "b" version
===========================

Some code was added to the only entrypoint.
Loading