I'm can't preserve folder structure for my output bundles.
I tried to use [path] placeholder but it doesn't work.
There is similar thread but it does not answer my question.
I'm using: Webpack 4.28.4 and Node v10.15.0.
Entry folder structure:
src
|  
+-- blog
|  |
|  +-- index.js
|  
+-- index.js
webpack.config.js:
  entry: {
    main: './src/index.js',
    blog: './src/blog/index.js'
  },
  output: {
    filename: '[path][name].[contenthash].js',
    path: path.resolve(__dirname, 'dist')
  },
On output I got:
dist
|  
+-- [path]blog.c63bf8952b90c5e5ba3e.js
|  
+-- [path]main.9ad0ffac44f9e88f76ce.js
But I expect:
dist
|  
+-- blog
|  |
|  +-- blog.c63bf8952b90c5e5ba3e.js
|  
+-- main.9ad0ffac44f9e88f76ce.js
Note: I used [name] placeholder to identify files but finally I'll remove it.