webpack file-loader 1

webpack file-loader

$ npm install file-loader --save-dev

Here is what the above code is Doing:
1. We’re importing the file-loader module.
2. We’re telling Webpack to use the file-loader module for all .png files.
3. We’re telling Webpack to output all .png files to the images folder.

Similar Posts