Answer the question
In order to leave comments, you need to log in
How to force webpack to initialize a library without a dash character in the name?
The webpack-glob-entries
module is used , which allows you to initialize entry according to a template:
module.exports = {
entry: globEntries('./src/entries/*.js'),
...
output: {
path: path.resolve(__dirname, './builded'),
publicPath: '/builded/',
filename: '[name].js',
library: '[name]'
},
}
Answer the question
In order to leave comments, you need to log in
in theory, this should help you - https://github.com/skozin/webpack-path-rewriter
you just need to override test: /\.js$/
through the PathRewriterPlugin.rewriteAndEmit()
examples and the plugin doc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question