webpack encore images folder

Solutions on MaxInterview for webpack encore images folder by the best coders in the world

showing results for - "webpack encore images folder"
Arianna
21 Nov 2017
1// webpack.config.js
2
3Encore
4    // ...
5    .setOutputPath('public/build/')
6
7+     .copyFiles({
8+         from: './assets/images',
9+
10+         // optional target path, relative to the output dir
11+         //to: 'images/[path][name].[ext]',
12+
13+         // if versioning is enabled, add the file hash too
14+         //to: 'images/[path][name].[hash:8].[ext]',
15+
16+         // only copy files matching this pattern
17+         //pattern: /\.(png|jpg|jpeg)$/
18+     })
19