Is it possible to make the webpack entry points coincide with the exit points without third-party tools? Suppose I have several files:

const path = require('path'); module.exports = { entry: { 'wheel': './public/WheelOfFortune/js/main.js', 'abc': './public/abc/js/main.js', 'cde': './public/cde/js/main.js', }, output: { // Как есть сейчас path: path.resolve(__dirname, 'test'), filename: '[name].js' }, plugins: [ ... // Здесь я взаимодействую с входящими файлами }) ] }; 

Those. after all my operations, webpack is required to replace files from the same directories from which I took

  • and why is it needed? Or I did not quite understand what I mean by returned - Grundy
  • @Grundy, Well, for example, webpack worked with all the files (wheel, abc, cde) and already processed returns to the test folder and I have to manually replace them (for the place not processed). Corrected the question) - Alexey
  • come on for sure: there is a ./public/WheelOfFortune/js/main.js file - do you want it to be replaced with a processed one during assembly? or so that the build result is replaced in the dist folder, for example? - Grundy
  • just in the first case, the operation is rather meaningless, and in the second - it seems like the default works - Grundy

0