Answers for "webpack encore images folder"

0

webpack encore images folder

// webpack.config.js

Encore
    // ...
    .setOutputPath('public/build/')

+     .copyFiles({
+         from: './assets/images',
+
+         // optional target path, relative to the output dir
+         //to: 'images/[path][name].[ext]',
+
+         // if versioning is enabled, add the file hash too
+         //to: 'images/[path][name].[hash:8].[ext]',
+
+         // only copy files matching this pattern
+         //pattern: /\.(png|jpg|jpeg)$/
+     })
Posted by: Guest on December-02-2020

Code answers related to "webpack encore images folder"

Code answers related to "Javascript"

Browse Popular Code Answers by Language