/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
  mount: {
    public: { url: '/', static: true },
    src: { url: '/dist' },
  },
  plugins: [
    '@snowpack/plugin-react-refresh',
    '@snowpack/plugin-dotenv',
    '@snowpack/plugin-typescript',
    "@snowpack/plugin-sass",
    ["@snowpack/plugin-build-script", { "cmd": "js-yaml", "input": [".yaml", ".yml"], "output": [".json"]}],
    ["@snowpack/plugin-webpack", { outputPattern: { css: "[name].css", js: "[name].js"} }]
    // ["@snowpack/plugin-optimize", { "preloadCSS": true }]
  ],
  routes: [
    /* Enable an SPA Fallback in development: */
    // {"match": "routes", "src": ".*", "dest": "/index.html"},
  ],
  // This uses the built-in snowpack bundler, but that creates inline styles
  // that are not allowed under our CSP.
  // optimize: {
  //   bundle: true,
  //   minify: true,
  //   target: 'es2017'
  // },
  packageOptions: {
    /* ... */
  },
  devOptions: {
    /* ... */
  },
  buildOptions: {
    /* ... */
  },
};