wp-blank-scripts 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,7 +44,9 @@ async function checkProjectDependencies() {
|
|
|
44
44
|
await execAsync(`${husky} install`);
|
|
45
45
|
logger.info('Upgrading Husky git hooks config');
|
|
46
46
|
await execAsync(`${husky} add .husky/pre-commit 'npx lint-staged'`);
|
|
47
|
-
await execAsync(
|
|
47
|
+
await execAsync(
|
|
48
|
+
`${husky} add .husky/post-merge 'node_modules/.bin/wp-scripts hooks --type="post-merge"'`
|
|
49
|
+
);
|
|
48
50
|
logger.success('Husky upgrade successful!');
|
|
49
51
|
}
|
|
50
52
|
}
|
package/package.json
CHANGED
package/webpack.react.config.js
CHANGED
|
@@ -156,6 +156,13 @@ function makeReactWebpackConfig(options) {
|
|
|
156
156
|
},
|
|
157
157
|
],
|
|
158
158
|
},
|
|
159
|
+
{
|
|
160
|
+
test: /\.(woff|woff2|eot|ttf|otf)$/i,
|
|
161
|
+
type: 'asset/resource',
|
|
162
|
+
generator: {
|
|
163
|
+
filename: `${path.join(themeDir, 'assets', 'fonts')}/[contenthash].[ext]`,
|
|
164
|
+
},
|
|
165
|
+
},
|
|
159
166
|
],
|
|
160
167
|
},
|
|
161
168
|
resolve: {
|