Timers and other features for Heroes of the Storm
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.
 
 
 
 
 

60 lines
2.2 KiB

  1. /*
  2. * Copyright © 2021 Adrien Agez <adrien.agez@pm.me>
  3. *
  4. * This file is part of Nexus Timers.
  5. *
  6. * Nexus Timers is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Nexus Timers is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Affero General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License
  17. * along with Nexus Timers. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. 'use strict'
  20. // see http://vuejs-templates.github.io/webpack for documentation.
  21. const path = require('path')
  22. module.exports = {
  23. build: {
  24. env: require('./prod.env'),
  25. index: path.resolve(__dirname, '../dist/index.html'),
  26. assetsRoot: path.resolve(__dirname, '../dist'),
  27. assetsSubDirectory: 'static',
  28. assetsPublicPath: '/',
  29. productionSourceMap: true,
  30. // Gzip off by default as many popular static hosts such as
  31. // Surge or Netlify already gzip all static assets for you.
  32. // Before setting to `true`, make sure to:
  33. // npm install --save-dev compression-webpack-plugin
  34. productionGzip: false,
  35. productionGzipExtensions: ['js', 'css'],
  36. // Run the build command with an extra argument to
  37. // View the bundle analyzer report after build finishes:
  38. // `npm run build --report`
  39. // Set to `true` or `false` to always turn it on or off
  40. bundleAnalyzerReport: process.env.npm_config_report
  41. },
  42. dev: {
  43. env: require('./dev.env'),
  44. port: 8080,
  45. autoOpenBrowser: false,
  46. assetsSubDirectory: 'static',
  47. assetsPublicPath: '/',
  48. proxyTable: {},
  49. // CSS Sourcemaps off by default because relative paths are "buggy"
  50. // with this option, according to the CSS-Loader README
  51. // (https://github.com/webpack/css-loader#sourcemaps)
  52. // In our experience, they generally work as expected,
  53. // just be aware of this issue when enabling this option.
  54. cssSourceMap: true
  55. }
  56. }