build.js 712 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import webpack from 'webpack'
  2. export default {
  3. // Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
  4. ssr: true,
  5. // Auto import components (https://go.nuxtjs.dev/config-components)
  6. components: true,
  7. // Build Configuration (https://go.nuxtjs.dev/config-build)
  8. build: {
  9. extend (config, { isDev, isClient }) {
  10. config.node = {
  11. fs: "empty"
  12. }
  13. },
  14. plugins: [
  15. new webpack.ProvidePlugin({
  16. _: 'lodash'
  17. })
  18. ]
  19. },
  20. //Port and local host
  21. server: {
  22. port: 3002,
  23. host: '0.0.0.0', // default: localhost,
  24. },
  25. //Poll for hot reloading with docker
  26. watchers: {
  27. webpack: {
  28. aggregateTimeout: 300,
  29. poll: 1000
  30. }
  31. }
  32. }