fix: Restore DNS prefetching for static resources (#1820)

* fix: Restore DNS prefetching for static resources

* fix: CDN paths
feat: preload instead of prefetch for key bundles

* csp

* fix: Turns out prefetch-src is still behind a flag in Chrome, not publicly available yet
This commit is contained in:
Tom Moor
2021-01-18 15:48:46 -08:00
committed by GitHub
parent 27fca28450
commit 3bace8c9e4
7 changed files with 76 additions and 53 deletions

View File

@@ -1,7 +1,7 @@
/* eslint-disable */
const path = require('path');
const webpack = require('webpack');
const ManifestPlugin = require('webpack-manifest-plugin');
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
const TerserPlugin = require('terser-webpack-plugin');
commonWebpackConfig = require('./webpack.config');
@@ -42,7 +42,7 @@ productionWebpackConfig = Object.assign(commonWebpackConfig, {
productionWebpackConfig.plugins = [
...productionWebpackConfig.plugins,
new ManifestPlugin()
new WebpackManifestPlugin()
];
module.exports = productionWebpackConfig;