owl-map/snowpack.config.mjs

36 lines
756 B
JavaScript

import pkg from './package.json';
/** @type {import("snowpack").SnowpackUserConfig } */
export default {
mount: {
// public: {url: '/', static: true},
frontend: {url: '/dist'},
},
plugins: [
'@snowpack/plugin-vue',
'@snowpack/plugin-dotenv',
['snowpack-plugin-cdn-import', {
dependencies: pkg.dependencies,
enableInDevMode: true,
// baseUrl: 'https://unpkg.com',
}]
],
routes: [
/* Enable an SPA Fallback in development: */
// {"match": "routes", "src": ".*", "dest": "/index.html"},
],
optimize: {
/* Example: Bundle your final build: */
// "bundle": true,
},
packageOptions: {
/* ... */
},
devOptions: {
/* ... */
},
buildOptions: {
/* ... */
},
};