chore(*): Add base project files

This commit is contained in:
Josh Creek
2022-12-17 15:13:17 +00:00
parent e5d25b4354
commit 2b4cbd84ef
15 changed files with 338 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
const { merge } = require('webpack-merge');
const { InjectManifest } = require('workbox-webpack-plugin');
const common = require('./webpack.common');
common.plugins.push(new InjectManifest({
swSrc: './src/serviceWorker.js',
swDest: 'service-worker.js',
maximumFileSizeToCacheInBytes: 50000000,
}));
module.exports = merge(common, {
mode: 'production',
devtool: 'source-map',
performance: {
hints: false,
maxEntrypointSize: 512000,
maxAssetSize: 512000,
},
});