[webpack] fix copying images when running dev server (#9250)

This commit is contained in:
ʈᵃᵢ 2020-03-08 10:03:58 -07:00 committed by GitHub
parent 52c59d6890
commit 1902fda159
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 5 deletions

View File

@ -77,11 +77,14 @@ const plugins = [
checkSyntacticErrors: true,
}),
new CopyPlugin([
'package.json',
{ from: 'images', to: 'images' },
{ from: 'stylesheets', to: 'stylesheets' },
]),
new CopyPlugin(
[
'package.json',
{ from: 'images', to: 'images' },
{ from: 'stylesheets', to: 'stylesheets' },
],
{ copyUnmodified: true },
),
];
if (isDevMode) {