瀏覽代碼

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

Johan Ahlen 5 年之前
父節點
當前提交
d8437091a2
共有 3 個文件被更改,包括 6 次插入3 次删除
  1. 2 1
      webpack.config.js
  2. 2 1
      webpack.config.login.js
  3. 2 1
      webpack.config.workers.js

+ 2 - 1
webpack.config.js

@@ -98,7 +98,8 @@ module.exports = {
     new webpack.SourceMapDevToolPlugin({
       filename: 'hue/[file].map',
       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 RelativeBundleTracker({ path: '.', filename: 'webpack-stats.json' }),

+ 2 - 1
webpack.config.login.js

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