snowpack.config.js 441 B

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