2021-06-14 23:08:07 +01:00
|
|
|
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,
|
2022-04-08 10:45:03 +01:00
|
|
|
baseUrl: 'https://unpkg.com',
|
2021-06-14 23:08:07 +01:00
|
|
|
}]
|
|
|
|
],
|
|
|
|
routes: [
|
|
|
|
/* Enable an SPA Fallback in development: */
|
|
|
|
// {"match": "routes", "src": ".*", "dest": "/index.html"},
|
|
|
|
],
|
|
|
|
optimize: {
|
|
|
|
/* Example: Bundle your final build: */
|
|
|
|
// "bundle": true,
|
|
|
|
},
|
|
|
|
packageOptions: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
devOptions: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
buildOptions: {
|
|
|
|
/* ... */
|
|
|
|
},
|
|
|
|
};
|