skel-svelte-snowpack/snowpack.config.js

50 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-11-11 16:44:55 +01:00
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
mount: {
public: "/",
src: "/_dist_",
},
plugins: [
"@snowpack/plugin-svelte",
"@snowpack/plugin-dotenv",
"@snowpack/plugin-typescript",
[
"@snowpack/plugin-webpack",
{
sourceMap: false,
extendConfig: (config) => {
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: "static",
openAnalyzer: false,
})
)
return config
},
},
],
],
install: [
/* ... */
],
installOptions: {
2020-11-23 10:57:59 +01:00
sourceMap: true,
2020-11-11 16:44:55 +01:00
},
devOptions: {
/* ... */
},
buildOptions: {
2020-11-23 10:57:59 +01:00
sourceMaps: true,
2020-11-11 16:44:55 +01:00
clean: true,
},
proxy: {
/* ... */
},
alias: {
/* ... */
},
}