Skip to content

Commit badc3b3

Browse files
authored
make sure static files are copied on dev environment (#1196)
1 parent 46f56d8 commit badc3b3

File tree

1 file changed

+5
-4
lines changed
  • packages/pwa-kit-dev/src/configs/webpack

1 file changed

+5
-4
lines changed

packages/pwa-kit-dev/src/configs/webpack/config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,11 @@ const renderer =
364364
plugins: [
365365
...config.plugins,
366366

367+
// This must only appear on one config – this one is the only mandatory one.
368+
new CopyPlugin({
369+
patterns: [{from: 'app/static/', to: 'static/'}]
370+
}),
371+
367372
// Keep this on the slowest-to-build item - the server-side bundle.
368373
new WebpackNotifierPlugin({
369374
title: `PWA Kit Project: ${pkg.name}`,
@@ -393,10 +398,6 @@ const ssr = (() => {
393398
},
394399
plugins: [
395400
...config.plugins,
396-
// This must only appear on one config – this one is the only mandatory one.
397-
new CopyPlugin({
398-
patterns: [{from: 'app/static/', to: 'static/'}]
399-
}),
400401
analyzeBundle && getBundleAnalyzerPlugin(SSR)
401402
].filter(Boolean)
402403
}

0 commit comments

Comments
 (0)