You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 line
811 B

  1. const path = require("path")
  2. const styleRules = require("./webpack.dist-style.config.js")
  3. let rules = [
  4. { test: /\.(worker\.js)(\?.*)?$/,
  5. use: [
  6. {
  7. loader: "worker-loader",
  8. options: {
  9. inline: true,
  10. name: "[name].js"
  11. }
  12. },
  13. { loader: "babel-loader?retainLines=true" }
  14. ]
  15. }
  16. ]
  17. module.exports = require("./make-webpack-config.js")(rules, {
  18. _special: {
  19. separateStylesheets: true,
  20. minimize: true,
  21. sourcemaps: true,
  22. },
  23. entry: {
  24. "swagger-ui-bundle": [
  25. "./src/polyfills",
  26. "./src/core/index.js"
  27. ]
  28. },
  29. output: {
  30. path: path.join(__dirname, "dist"),
  31. publicPath: "/dist",
  32. library: "SwaggerUIBundle",
  33. libraryTarget: "umd",
  34. filename: "[name].js",
  35. chunkFilename: "js/[name].js",
  36. },
  37. })