refactor(web): use snowpack-plugin-hash

This commit is contained in:
Paul Armstrong
2021-02-05 08:07:24 -08:00
committed by Blake Blackshear
parent d51e9446ff
commit a99f360a64
3 changed files with 406 additions and 6527 deletions

View File

@@ -5,21 +5,17 @@ module.exports = {
public: { url: '/', static: true },
src: { url: '/dist' },
},
plugins: [
'@snowpack/plugin-postcss',
'@prefresh/snowpack',
[
'@snowpack/plugin-webpack',
{
sourceMap: true,
},
],
],
plugins: ['@snowpack/plugin-postcss', '@prefresh/snowpack', 'snowpack-plugin-hash'],
routes: [{ match: 'routes', src: '.*', dest: '/index.html' }],
optimize: {
bundle: true,
minify: true,
treeshake: true,
},
packageOptions: {
sourcemap: false,
},
buildOptions: {
sourcemap: true,
sourcemap: false,
},
};