cd mastodon't && patch -p0 < ~/faster-webpack.patch
Created on:
/faster-webpack.patch 1.6 KB (text/x-diff)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. diff --git config/webpack/production.js config/webpack/production.js
  2. index e2d7f11d..d7118a12 100644
  3. --- config/webpack/production.js
  4. +++ config/webpack/production.js
  5. @@ -25,37 +25,9 @@ module.exports = merge(sharedConfig, {
  6. chunkFilename: '[name]-[chunkhash].js',
  7. },
  8. - devtool: 'source-map', // separate sourcemap file, suitable for production
  9. stats: 'normal',
  10. plugins: [
  11. - new webpack.optimize.UglifyJsPlugin({
  12. - sourceMap: true,
  13. - mangle: true,
  14. -
  15. - compress: {
  16. - warnings: false,
  17. - },
  18. -
  19. - output: {
  20. - comments: false,
  21. - },
  22. - }),
  23. - new CompressionPlugin({
  24. - asset: '[path].gz[query]',
  25. - algorithm: compressionAlgorithm,
  26. - test: /\.(js|css|html|json|ico|svg|eot|otf|ttf)$/,
  27. - }),
  28. - new BundleAnalyzerPlugin({ // generates report.html and stats.json
  29. - analyzerMode: 'static',
  30. - generateStatsFile: true,
  31. - statsOptions: {
  32. - // allows usage with http://chrisbateman.github.io/webpack-visualizer/
  33. - chunkModules: true,
  34. - },
  35. - openAnalyzer: false,
  36. - logLevel: 'silent', // do not bother Webpacker, who runs with --json and parses stdout
  37. - }),
  38. new OfflinePlugin({
  39. publicPath: publicPath, // sw.js must be served from the root to avoid scope issues
  40. caches: {
  41. @@ -94,7 +66,7 @@ module.exports = merge(sharedConfig, {
  42. cacheName: 'mastodon',
  43. output: '../assets/sw.js',
  44. publicPath: '/sw.js',
  45. - minify: true,
  46. + minify: false,
  47. },
  48. }),
  49. ],
© 2017-2018 git.txt - version: 0.5.2 - b28934a7ddecd31f2e40cb7058fa1fb5e9a1acc8 - page: 67ms - template: 3ms
Gitxts: 42, managed: 86
Sources - Go1.11.5