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.
 
 
 
 

31 lines
581 B

  1. var path = require('path')
  2. module.exports = require('./make-webpack-config.js')({
  3. _special: {
  4. separateStylesheets: false,
  5. minimize: true,
  6. sourcemaps: true,
  7. loaders: {
  8. "worker.js": ["worker-loader?inline=true&name=[name].js", "babel"]
  9. }
  10. },
  11. entry: {
  12. 'swagger-ui-bundle': [
  13. 'babel-polyfill',
  14. './src/core/index.js'
  15. ]
  16. },
  17. output: {
  18. path: path.join(__dirname, "dist"),
  19. publicPath: "/dist",
  20. library: "SwaggerUIBundle",
  21. libraryTarget: "umd",
  22. filename: "[name].js",
  23. chunkFilename: "js/[name].js",
  24. },
  25. })