How to use the sapper/config/webpack.js.serviceworker function in sapper

To help you get started, we’ve selected a few sapper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sveltejs / sapper-template / webpack.config.js View on Github external
generate: 'ssr',
							dev
						}
					}
				}
			]
		},
		mode: process.env.NODE_ENV,
		performance: {
			hints: false // it doesn't matter if server.js is large
		}
	},

	serviceworker: {
		entry: config.serviceworker.entry(),
		output: config.serviceworker.output(),
		mode: process.env.NODE_ENV
	}
};
github sveltejs / sapper-template / webpack.config.js View on Github external
css: false,
							generate: 'ssr',
							dev
						}
					}
				}
			]
		},
		mode: process.env.NODE_ENV,
		performance: {
			hints: false // it doesn't matter if server.js is large
		}
	},

	serviceworker: {
		entry: config.serviceworker.entry(),
		output: config.serviceworker.output(),
		mode: process.env.NODE_ENV
	}
};
github SAP / luigi / website / docs / webpack.config.js View on Github external
}
					}
				},
				commonRules.babel,
				commonRules.css,
				commonRules.urls
			]
		},
		mode: process.env.NODE_ENV,
		performance: {
			hints: false // it doesn't matter if server.js is large
		}
	},

	serviceworker: {
		entry: config.serviceworker.entry(),
		output: config.serviceworker.output(),
		mode: process.env.NODE_ENV
	}
};
github alexdilley / sapper-serverless-template / webpack.config.js View on Github external
css: false,
              generate: 'ssr',
              dev,
            },
          },
        },
      ],
    },
    mode: process.env.NODE_ENV,
    performance: {
      hints: false, // it doesn't matter if server.js is large
    },
  },

  serviceworker: {
    entry: config.serviceworker.entry(),
    output: config.serviceworker.output(),
    mode: process.env.NODE_ENV,
  },
};
github arackaf / booklist / framework-poc / sapper / webpack.config.js View on Github external
dev
            }
          }
        }
      ]
    },
    mode: process.env.NODE_ENV,
    plugins: [new MiniCssExtractPlugin({ filename: dev ? "[name].css" : "[name]-[contenthash].css" })],
    performance: {
      hints: false // it doesn't matter if server.js is large
    }
  },

  serviceworker: {
    entry: config.serviceworker.entry(),
    output: config.serviceworker.output(),
    mode: process.env.NODE_ENV
  }
};
github arackaf / booklist / framework-poc / sapper / webpack.config.js View on Github external
generate: "ssr",
              dev
            }
          }
        }
      ]
    },
    mode: process.env.NODE_ENV,
    plugins: [new MiniCssExtractPlugin({ filename: dev ? "[name].css" : "[name]-[contenthash].css" })],
    performance: {
      hints: false // it doesn't matter if server.js is large
    }
  },

  serviceworker: {
    entry: config.serviceworker.entry(),
    output: config.serviceworker.output(),
    mode: process.env.NODE_ENV
  }
};
github SAP / luigi / website / docs / webpack.config.js View on Github external
}
				},
				commonRules.babel,
				commonRules.css,
				commonRules.urls
			]
		},
		mode: process.env.NODE_ENV,
		performance: {
			hints: false // it doesn't matter if server.js is large
		}
	},

	serviceworker: {
		entry: config.serviceworker.entry(),
		output: config.serviceworker.output(),
		mode: process.env.NODE_ENV
	}
};
github alexdilley / sapper-serverless-template / webpack.config.js View on Github external
generate: 'ssr',
              dev,
            },
          },
        },
      ],
    },
    mode: process.env.NODE_ENV,
    performance: {
      hints: false, // it doesn't matter if server.js is large
    },
  },

  serviceworker: {
    entry: config.serviceworker.entry(),
    output: config.serviceworker.output(),
    mode: process.env.NODE_ENV,
  },
};
github sveltejs / sapper-template / webpack / service-worker.config.js View on Github external
const config = require('sapper/config/webpack.js');

module.exports = {
	entry: config.serviceworker.entry(),
	output: config.serviceworker.output(),
	mode: process.env.NODE_ENV
};
github sveltejs / sapper-template / webpack / service-worker.config.js View on Github external
const config = require('sapper/config/webpack.js');

module.exports = {
	entry: config.serviceworker.entry(),
	output: config.serviceworker.output(),
	mode: process.env.NODE_ENV
};