V
V
Vladislav Chernushevich2016-08-22 18:23:28
JavaScript
Vladislav Chernushevich, 2016-08-22 18:23:28

How to scatter output files in different folders in webpack?

There are multiple entry points for the .js assembly in webpack. How to scatter output files into different folders during compilation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zakhar Orlov, 2016-08-22
@divalign

It certainly looks dumb, but it works.

entry: {
  'dist/one/bundle': './src/one.js',
  'dist/two/bundle': './src/two.js'
},
output: {
  path: './',
  filename: '[name].js'
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question