chore: replace hash output webpack plugin with v5 optimization option
This commit is contained in:
parent
da9f05c09e
commit
d1596084fc
@ -108,8 +108,7 @@
|
||||
"typeface-source-sans-pro": "1.1.13",
|
||||
"webpack": "^5.72.0",
|
||||
"webpack-cli": "^4.9.2",
|
||||
"webpack-manifest-plugin": "^5.0.0",
|
||||
"webpack-plugin-hash-output": "^3.2.1"
|
||||
"webpack-manifest-plugin": "^5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.9",
|
||||
|
||||
1539
records.json
1539
records.json
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,6 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
const yaml = require('js-yaml');
|
||||
const HashOutput = require('webpack-plugin-hash-output');
|
||||
const postcssPresetEnv = require('postcss-preset-env');
|
||||
const RemovePlugin = require('remove-files-webpack-plugin');
|
||||
const RealFaviconPlugin = require('real-favicon-webpack-plugin');
|
||||
@ -119,10 +118,6 @@ async function webpackConfig() {
|
||||
},
|
||||
|
||||
plugins: [
|
||||
new HashOutput({
|
||||
validateOutput: true,
|
||||
validateOutputRegex: /static\/wp-[^\/]\//
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
// Options similar to the same options in webpackOptions.output
|
||||
// all options are optional
|
||||
@ -317,6 +312,7 @@ async function webpackConfig() {
|
||||
}
|
||||
}
|
||||
},
|
||||
realContentHash: false
|
||||
},
|
||||
|
||||
mode: 'production',
|
||||
|
||||
Reference in New Issue
Block a user