Browse Source

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

Book Pauk 3 năm trước cách đây
mục cha
commit
9143288de2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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`
         }),
         new CopyWebpackPlugin({patterns: 
-            [{from: `${clientDir}/assets/*`, to: `${publicDir}/`}]
+            [{from: `${clientDir}/assets/*`, to: `${publicDir}/`, context: `${clientDir}/assets` }]
         }),
         new GenerateSW({
             cacheId: 'liberama',