Answer the question
In order to leave comments, you need to log in
How to set webpack output path to write to existing directories on multiple entry points?
There is approximately such a config (I give a fragment)
const config = {
entry: {
'/green/': ['./green/theme-green/js/src/index.js', './green/theme-green/less/style.less'],
'/red/': ['./red/theme-red/js/src/index.js', './red/theme-red/scss/main.scss']
},
output: {
path: path.join(__dirname, '/dest/'),
assetModuleFilename: 'assets/[hash][ext]',
filename: '[name]combine.js',
publicPath: ''
},
module: {
//
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question