Browse Source

Поправка копирования assets

Book Pauk 3 years ago
parent
commit
9143288de2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build/webpack.prod.config.js

+ 1 - 1
build/webpack.prod.config.js

@@ -54,7 +54,7 @@ module.exports = merge(baseWpConfig, {
             filename: `${publicDir}/index.html`
             filename: `${publicDir}/index.html`
         }),
         }),
         new CopyWebpackPlugin({patterns: 
         new CopyWebpackPlugin({patterns: 
-            [{from: `${clientDir}/assets/*`, to: `${publicDir}/`}]
+            [{from: `${clientDir}/assets/*`, to: `${publicDir}/`, context: `${clientDir}/assets` }]
         }),
         }),
         new GenerateSW({
         new GenerateSW({
             cacheId: 'liberama',
             cacheId: 'liberama',