| 12345678910111213141516171819202122232425262728293031323334353637 |
- import webpack from 'webpack'
- export default {
- // Disable server-side rendering (https://go.nuxtjs.dev/ssr-mode)
- ssr: true,
- // Auto import components (https://go.nuxtjs.dev/config-components)
- components: true,
- // Build Configuration (https://go.nuxtjs.dev/config-build)
- build: {
- extend (config, { isDev, isClient }) {
- config.node = {
- fs: "empty"
- }
- },
- plugins: [
- new webpack.ProvidePlugin({
- _: 'lodash'
- })
- ]
- },
- //Port and local host
- server: {
- port: 3002,
- host: '0.0.0.0', // default: localhost,
- },
- //Poll for hot reloading with docker
- watchers: {
- webpack: {
- aggregateTimeout: 300,
- poll: 1000
- }
- }
- }
|