generated from KevinBatdorf/gutenberg-rust-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
webpack.config.js
30 lines (29 loc) · 900 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* eslint @typescript-eslint/no-require-imports: 0 */
// eslint-disable-next-line no-undef
const defaultConfig = require('@wordpress/scripts/config/webpack.config');
// eslint-disable-next-line no-undef
const CopyPlugin = require('copy-webpack-plugin');
// eslint-disable-next-line no-undef
const RtlCssPlugin = require('rtlcss-webpack-plugin');
// eslint-disable-next-line no-undef
module.exports = {
...defaultConfig,
devServer: {
...defaultConfig.devServer,
host: 'wordpress.test',
},
plugins: [
...defaultConfig.plugins.filter(
(filter) => !(filter instanceof RtlCssPlugin),
),
new CopyPlugin({
patterns: [
{ from: 'node_modules/shiki', to: 'shiki' },
{ from: 'src/fonts', to: 'fonts' },
],
}),
],
experiments: {
asyncWebAssembly: true,
},
};