build.js 657 B

123456789101112131415161718192021222324252627282930313233
  1. import webpack from 'webpack'
  2. export default {
  3. // Enable 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. loading: '~/components/Layout/Loading.vue',
  8. // Build Configuration (https://go.nuxtjs.dev/config-build)
  9. build: {
  10. extend (config, { isDev, isClient }) {
  11. config.node = {
  12. fs: "empty"
  13. }
  14. },
  15. plugins: [
  16. new webpack.ProvidePlugin({
  17. _: 'lodash'
  18. })
  19. ]
  20. },
  21. // Poll for hot reloading with docker
  22. watchers: {
  23. webpack: {
  24. aggregateTimeout: 300,
  25. poll: 1000
  26. }
  27. }
  28. }