This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
hydrogen-web/snowpack.config.js

35 lines
768 B
JavaScript

// Snowpack Configuration File
// See all supported options: https://www.snowpack.dev/reference/configuration
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
"src": "/src",
"public": "/",
"lib": {url: "/lib", static: true },
/* ... */
},
exclude: [
/* Avoid scanning scripts which use dev-dependencies and pull in babel, rollup, etc. */
'**/node_modules/**/*', '**/scripts/**', '**/target/**', '**/prototypes/**'
],
plugins: [
/* ... */
],
packageOptions: {
/* ... */
external: [
/* Olm seems to import these but not use them. */
"path",
"crypto",
"fs",
],
},
devOptions: {
open: "none",
/* ... */
},
buildOptions: {
/* ... */
},
};