Skip to content

Instantly share code, notes, and snippets.

@VacantThinker
Created May 4, 2023 05:16
Show Gist options
  • Select an option

  • Save VacantThinker/cf741e41a090856937a831346067337d to your computer and use it in GitHub Desktop.

Select an option

Save VacantThinker/cf741e41a090856937a831346067337d to your computer and use it in GitHub Desktop.
webpack multi output
entry: {
    'module/a/index': 'module/a/index.js',
    'module/b/index': 'module/b/index.js',
},
output: {
    path: path.resolve(__dirname, 'dist'),
    filename: '[name].js'
}
└── module
    ├── a
    │   └── index.js
    └── b
        └── index.js
from : https://stackoverflow.com/questions/35903246/how-to-create-multiple-output-paths-in-webpack-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment