Skip to content

Commit

Permalink
Add [chunkhash] support (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
CJY0208 committed Feb 1, 2018
1 parent f2d4a2c commit da42b22
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions specs/createConfig.spec.js.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Snapshot report for `specs/createConfig.spec.js`
# Snapshot report for `specs\createConfig.spec.js`

The actual snapshot is saved in `createConfig.spec.js.snap`.

Expand All @@ -22,13 +22,13 @@ Generated by [AVA](https://ava.li).
},
output: {
filename: '[name].js',
library: '[name]_[hash]',
library: '[name]_[chunkhash]',
path: '/.cache/fake-cache-dir/FAKE_ENV_instance_2_1c2416a464231cb8a54aab9155d721e6',
},
plugins: [
DllPlugin {
options: {
name: '[name]_[hash]',
name: '[name]_[chunkhash]',
path: '/.cache/fake-cache-dir/FAKE_ENV_instance_2_1c2416a464231cb8a54aab9155d721e6/[name].manifest.json',
},
},
Expand Down
Binary file modified specs/createConfig.spec.js.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion specs/createSettings.spec.js.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Snapshot report for `specs/createSettings.spec.js`
# Snapshot report for `specs\createSettings.spec.js`

The actual snapshot is saved in `createSettings.spec.js.snap`.

Expand Down
Binary file modified specs/createSettings.spec.js.snap
Binary file not shown.
4 changes: 2 additions & 2 deletions src/createConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ export const _createConfig = cacheDir => (settings, rawParentConfig) => {
...(settings.plugins || []),
new DllPlugin({
path: path.join(outputPath, '[name].manifest.json'),
name: '[name]_[hash]',
name: '[name]_[chunkhash]',
}),
],
output: {
filename: filename,
library: '[name]_[hash]',
library: '[name]_[chunkhash]',
},
};

Expand Down

0 comments on commit da42b22

Please sign in to comment.