瀏覽代碼

Merge pull request #3793 from swagger-api/ft/sourcemaps

Sourcemaps
bubble
kyle 7 年之前
committed by GitHub
父節點
當前提交
9a442b16e3
共有 5 個檔案被更改,包括 6 行新增12 行删除
  1. +1
    -1
      make-webpack-config.js
  2. +1
    -1
      webpack-dist-bundle.config.js
  3. +1
    -1
      webpack-dist-standalone.config.js
  4. +1
    -1
      webpack-dist.config.js
  5. +2
    -8
      webpack-hot-dev-server.config.js

+ 1
- 1
make-webpack-config.js 查看文件

@@ -137,7 +137,7 @@ module.exports = function(rules, options) {
}
},

devtool: specialOptions.sourcemaps ? "cheap-module-source-map" : null,
devtool: specialOptions.sourcemaps ? "nosource-source-map" : null,

plugins,



+ 1
- 1
webpack-dist-bundle.config.js 查看文件

@@ -11,7 +11,7 @@ let rules = [
name: "[name].js"
}
},
{ loader: "babel-loader" }
{ loader: "babel-loader?retainLines=true" }
]
}
]


+ 1
- 1
webpack-dist-standalone.config.js 查看文件

@@ -11,7 +11,7 @@ let rules = [
name: "[name].js"
}
},
{ loader: "babel-loader" }
{ loader: "babel-loader?retainLines=true" }
]
}
]


+ 1
- 1
webpack-dist.config.js 查看文件

@@ -13,7 +13,7 @@ let rules = [
name: "[name].js"
}
},
{ loader: "babel-loader" }
{ loader: "babel-loader?retainLines=true" }
]
}
]


+ 2
- 8
webpack-hot-dev-server.config.js 查看文件

@@ -9,13 +9,7 @@ const rules = [
inline: true
}
},
{ loader: "babel-loader" }
]
},
{ test: /\.(jsx)(\?.*)?$/,
use: [
{ loader: "react-hot-loader" },
{ loader: "babel-loader" }
{ loader: "babel-loader?retainLines=true" }
]
},
{ test: /\.(css)(\?.*)?$/,
@@ -48,7 +42,7 @@ module.exports = require("./make-webpack-config")(rules, {
_special: {
separateStylesheets: false,
},
devtool: "eval",
devtool: "eval-source-map",
entry: {
"swagger-ui-bundle": [
"./src/polyfills",


Loading…
取消
儲存