File Editor
Directories:
.. (Back)
build
config
src
Files:
index.php
settings.php
webpack.config.js
Create New File
Create
Edit File: webpack.config.js
const defaultConfig = require("@wordpress/scripts/config/webpack.config"); module.exports = { ...defaultConfig, output: { ...defaultConfig.output, filename: '[name].[contenthash].js', chunkFilename: '[name].[contenthash].js', }, resolve: { ...defaultConfig.resolve, fallback: { "path": require.resolve("path-browserify"), }, }, module: { ...defaultConfig.module, rules: [ ...defaultConfig.module.rules, { test: /\.node$/, loader: 'node-loader', }, ], }, };
Save Changes
Rename File
Rename