bernd
07/31/2024, 1:57 PMjsBrowserDevelopmentRun
, the compiled module is served under <http://localhost:8080/myModule.js>
. While this generally makes sense, I would like it to be served under <http://localhost:8080/someDirectory/myModule.js>
. Does anyone know if and how that can be accomplished ? ThanksBernhard
07/31/2024, 5:53 PMBernhard
07/31/2024, 5:54 PMBernhard
07/31/2024, 5:54 PMHildebrandt Tobias
08/01/2024, 9:39 AMpublicPath
File: webpack.config.d/webpack.config.js
;(function(config) {
config.mode = 'development'
if(!config.hasOwnProperty('devServer')) {
config.devServer = { }
}
config.devServer.host = 'developer.local'
config.devServer.port = 8080
config.devServer.devMiddleware = {
publicPath: '/',
mimeTypes: { "text/html": ["phtml"] },
}
config.devServer.historyApiFallback = true
})(config);
bernd
08/01/2024, 10:02 AMwebpack.config.d/config.js
file containing just the line config.output.publicPath = "/someDirectory"
) was enough)