29 lines
656 B
JavaScript
29 lines
656 B
JavaScript
// Snowpack Configuration File
|
|
// See all supported options: https://www.snowpack.dev/reference/configuration
|
|
|
|
/** @type {import("snowpack").SnowpackUserConfig } */
|
|
module.exports = {
|
|
plugins: ["@snowpack/plugin-typescript", "snowpack-plugin-svgr"],
|
|
packageOptions: {
|
|
polyfillNode: true,
|
|
},
|
|
mount: {
|
|
public: "/",
|
|
src: "/dist",
|
|
},
|
|
optimize: {
|
|
bundle: true,
|
|
},
|
|
routes: [
|
|
{ match: "routes", src: "robots.txt", dest: "/robots.txt" },
|
|
{ match: "routes", src: ".*", dest: "/index.html" },
|
|
],
|
|
devOptions: {
|
|
open: "none",
|
|
},
|
|
alias: {
|
|
"~": "./src",
|
|
},
|
|
exclude: ["**/node_modules/**/*", "**/*.test.*"],
|
|
};
|