From f382ec567e1292cedee7c01e721ddc38bdc4dc4e Mon Sep 17 00:00:00 2001 From: "SOGYO\\bvdoord" Date: Tue, 26 Jan 2021 11:22:58 +0100 Subject: Front-end met Snowpack toegevoegd --- client/snowpack.config.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 client/snowpack.config.js (limited to 'client/snowpack.config.js') diff --git a/client/snowpack.config.js b/client/snowpack.config.js new file mode 100644 index 0000000..db22467 --- /dev/null +++ b/client/snowpack.config.js @@ -0,0 +1,30 @@ +/** @type {import("snowpack").SnowpackUserConfig } */ +module.exports = { + mount: { + public: '/', + src: '/_dist_', + }, + plugins: [ + '@snowpack/plugin-react-refresh', + '@snowpack/plugin-dotenv', + '@snowpack/plugin-typescript', + ], + install: [ + /* ... */ + ], + installOptions: { + /* ... */ + }, + devOptions: { + port: 3000, + }, + buildOptions: { + /* ... */ + }, + proxy: { + '/mancala': 'http://localhost:8080/mancala', // <-- change 8080 to a different port if necessary + }, + alias: { + /* ... */ + }, +}; -- cgit v1.2.3