snowpack.config.js 426 B

12345678910111213141516171819
  1. module.exports = {
  2. mount: {
  3. public: { url: '/', static: true },
  4. src: { url: '/dist' },
  5. },
  6. plugins: ['@snowpack/plugin-postcss', '@prefresh/snowpack', 'snowpack-plugin-hash'],
  7. routes: [{ match: 'routes', src: '.*', dest: '/index.html' }],
  8. optimize: {
  9. bundle: false,
  10. minify: true,
  11. treeshake: true,
  12. },
  13. packageOptions: {
  14. sourcemap: false,
  15. },
  16. buildOptions: {
  17. sourcemap: false,
  18. },
  19. };