Эх сурвалжийг харах

HUE-9377 [ui] Prevent absolute paths from Vue in the js.map files

Johan Ahlen 5 жил өмнө
parent
commit
d8437091a2

+ 2 - 1
webpack.config.js

@@ -98,7 +98,8 @@ module.exports = {
     new webpack.SourceMapDevToolPlugin({
     new webpack.SourceMapDevToolPlugin({
       filename: 'hue/[file].map',
       filename: 'hue/[file].map',
       publicPath: '/static/desktop/js/bundles/hue/',
       publicPath: '/static/desktop/js/bundles/hue/',
-      fileContext: 'public'
+      fileContext: 'public',
+      exclude: ['hotReload.js', 'styleInjection.js']
     }),
     }),
     new CleanWebpackPlugin([__dirname + '/desktop/core/src/desktop/static/desktop/js/bundles/hue']),
     new CleanWebpackPlugin([__dirname + '/desktop/core/src/desktop/static/desktop/js/bundles/hue']),
     new RelativeBundleTracker({ path: '.', filename: 'webpack-stats.json' }),
     new RelativeBundleTracker({ path: '.', filename: 'webpack-stats.json' }),

+ 2 - 1
webpack.config.login.js

@@ -86,7 +86,8 @@ module.exports = {
     new webpack.SourceMapDevToolPlugin({
     new webpack.SourceMapDevToolPlugin({
       filename: 'login/[file].map',
       filename: 'login/[file].map',
       publicPath: '/static/desktop/js/bundles/login/',
       publicPath: '/static/desktop/js/bundles/login/',
-      fileContext: 'public'
+      fileContext: 'public',
+      exclude: ['hotReload.js', 'styleInjection.js']
     }),
     }),
     new CleanWebpackPlugin([
     new CleanWebpackPlugin([
       __dirname + '/desktop/core/src/desktop/static/desktop/js/bundles/login'
       __dirname + '/desktop/core/src/desktop/static/desktop/js/bundles/login'

+ 2 - 1
webpack.config.workers.js

@@ -77,7 +77,8 @@ module.exports = {
     new webpack.SourceMapDevToolPlugin({
     new webpack.SourceMapDevToolPlugin({
       filename: 'workers/[file].map',
       filename: 'workers/[file].map',
       publicPath: '/static/desktop/js/bundles/workers/',
       publicPath: '/static/desktop/js/bundles/workers/',
-      fileContext: 'public'
+      fileContext: 'public',
+      exclude: ['hotReload.js', 'styleInjection.js']
     }),
     }),
     new CleanWebpackPlugin([
     new CleanWebpackPlugin([
       __dirname + '/desktop/core/src/desktop/static/desktop/js/bundles/workers/'
       __dirname + '/desktop/core/src/desktop/static/desktop/js/bundles/workers/'