fixture-0.input.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. const webpack = require("webpack");
  2. module.exports = {
  3. entry: {
  4. ed: 'index.js',
  5. sheeran: "yea, good shit"
  6. },
  7. output: {
  8. filename: "'bundle'",
  9. path: "'dist/assets'",
  10. pathinfo: true,
  11. publicPath: "'https://google.com'",
  12. sourceMapFilename: "'[name].map'",
  13. sourcePrefix: jscodeshift("'\t'"),
  14. umdNamedDefine: true,
  15. strictModuleExceptionHandling: true
  16. },
  17. watchOptions: {
  18. aggregateTimeout: 100,
  19. poll: 90,
  20. ignored: "/ok/"
  21. },
  22. watch: 'me',
  23. context: 'reassign me like one of your french girls',
  24. devServer: {
  25. contentBase: "edSheeran",
  26. compress: true,
  27. port: 9000,
  28. empti: "ness"
  29. },
  30. devtool: 'eval',
  31. externals: {
  32. highdash: {
  33. commonjs: 'lodash',
  34. amd: 'lodash'
  35. }
  36. },
  37. performance: {
  38. hints: "'warning'",
  39. maxEntrypointSize: 400000,
  40. maxAssetSize: 100000,
  41. assetFilter:
  42. "function(assetFilename) {" +
  43. "return assetFilename.endsWith('.js');" +
  44. "}"
  45. },
  46. mode: 'development',
  47. bail: true,
  48. cache: true,
  49. profile: true,
  50. merge: 'NotMuch',
  51. parallelism: 69,
  52. recordsInputPath: 'something',
  53. recordsOutputPath: 'else',
  54. recordsPath: 'Brooklyn',
  55. amd: {
  56. jQuery: true,
  57. kQuery: false
  58. },
  59. resolveLoader: {
  60. moduleExtensions: [ '-loader' ]
  61. },
  62. stats: {
  63. assets: false,
  64. assetsSort: "'gold'",
  65. cached: true,
  66. cachedAssets: true,
  67. children: false,
  68. chunks: true,
  69. },
  70. target: 'something',
  71. resolve: {
  72. alias: {
  73. inject: "{{#if_eq build 'standalone'}}",
  74. hello: "'world'",
  75. inject_1: "{{/if_eq}}",
  76. world: "hello"
  77. },
  78. aliasFields: ["'browser'", "wars"],
  79. descriptionFiles: ["'a'", "b", "'c'"],
  80. enforceExtension: false,
  81. enforceModuleExtension: false,
  82. extensions: ["hey", "ho"],
  83. mainFields: ["main", "'story'"],
  84. mainFiles: ["'noMainFileHere'", "iGuess"],
  85. modules: ["one", "'two'"],
  86. unsafeCache: false,
  87. resolveLoader: {
  88. modules: ["'node_modules'", "mode_nodules"],
  89. extensions: ["jsVal", "'.json'"],
  90. mainFields: ["loader", "'main'"],
  91. moduleExtensions: ["'-loader'", "value"]
  92. },
  93. plugins: ["somePlugin", "'stringVal'"],
  94. symlinks: true
  95. },
  96. plugins: ['something'],
  97. module: {
  98. rules: [
  99. {
  100. loader: "'eslint-loader'",
  101. enforce: "'pre'",
  102. include: ["hey", "'Stringy'"],
  103. options: {
  104. formatter: "'someOption'"
  105. }
  106. },
  107. {
  108. loader: "'vue-loader'",
  109. options: "vueObject"
  110. },
  111. {
  112. loader: "'babel-loader'",
  113. include: ["resolve('src')", "resolve('test')"]
  114. },
  115. {
  116. loader: "'url-loader'",
  117. options: {
  118. limit: 10000,
  119. name: "utils.assetsPath('img/[name].[hash:7].[ext]')",
  120. inject: "{{#if_eq build 'standalone'}}"
  121. }
  122. },
  123. {
  124. loader: "'url-loader'",
  125. inject: "{{#if_eq build 'standalone'}}",
  126. options: {
  127. limit: "10000",
  128. name: "utils.assetsPath('fonts/[name].[hash:7].[ext]')"
  129. }
  130. }
  131. ]
  132. },
  133. }