Skip to content

Commit ae46095

Browse files
authored
Only set writeToDisk for the webpack-dev-server (#2743)
Otherwise the manifest.json is written twice for every compilation. See webdeveric/webpack-assets-manifest#89 for more details.
1 parent ddf30dd commit ae46095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/environments/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const getPluginList = () => {
4444
'Manifest',
4545
new WebpackAssetsManifest({
4646
entrypoints: true,
47-
writeToDisk: true,
47+
writeToDisk: !!process.env.WEBPACK_DEV_SERVER,
4848
publicPath: config.publicPathWithoutCDN
4949
})
5050
)

0 commit comments

Comments
 (0)