Explorar el Código

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

Sourcemaps
bubble
kyle hace 7 años
committed by GitHub
padre
commit
9a442b16e3
Se han modificado 5 ficheros con 6 adiciones y 12 borrados
  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 Ver fichero

@@ -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 Ver fichero

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


+ 1
- 1
webpack-dist-standalone.config.js Ver fichero

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


+ 1
- 1
webpack-dist.config.js Ver fichero

@@ -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 Ver fichero

@@ -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",


Cargando…
Cancelar
Guardar