50 lines
1.1 KiB
JavaScript
50 lines
1.1 KiB
JavaScript
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: {
|
|
sourceMap: true,
|
|
},
|
|
devOptions: {
|
|
/* ... */
|
|
},
|
|
buildOptions: {
|
|
sourceMaps: true,
|
|
clean: true,
|
|
},
|
|
proxy: {
|
|
/* ... */
|
|
},
|
|
alias: {
|
|
/* ... */
|
|
},
|
|
}
|