Snowpack dev is very cool - but for my needs I will need all js/css/images
packed into exactly one bundle.js
file. No chunks or anything else.
I have tried using the following webpack plugin config in snowpack.config.js
's
plugins
:
[
"@snowpack/plugin-webpack",
{
outputPattern: {
js: "bundle.js",
css: "bundle.css",
},
extendConfig: (config) => {
delete config.optimization.splitChunks;
delete config.optimization.runtimeChunk;
return config;
},
},
],
Which results in creating these two files: bundle.js
and bundle.css
Is there a simple way to:
- Pack everything only into
build.js
without the css file? - Automatically get rid of all the other files still left in the build
folder (
__snowpack__
,web_modules
, source files)?