1. プラグインのルートディレクトリにて以下の内容のファイルを作成します。

`package.json`

```
{
  "name": "wp-docodoco-geotargeting",
  "version": "2.0.0",
  "description": "",
  "main": "public/js/geotargeting-script.js",
  "directories": {
    "test": "tests/js"
  },
  "scripts": {
    "dev": "webpack --watch --mode development",
    "build": "webpack --mode production",
    "build:dev": "webpack --mode development",
    "test": "jest",
    "test:coverage": "jest --coverage"
  },
  "devDependencies": {
    "@babel/core": "^7.24.1",
    "@babel/preset-env": "^7.24.1",
    "jest": "^29.7.0",
    "webpack": "^5.90.3",
    "webpack-cli": "^5.1.4"
  }
}
```


`webpack.config.js`

```
const path = require('path');

module.exports = {
  mode: 'development',
  entry: {
    frontend: './src/js/frontend.js',
  },
  output: {
    filename: '[name].bundle.js',
    path: path.resolve(__dirname, 'public/js'),
  },
  optimization: {
    minimize: false,
  }
};
```

2. プラグインのルートディレクトリにて、以下のコマンドを実行します。

```
npm install
```

3. プラグインのルートディレクトリにて、以下のコマンドを実行します。

```
npm run build
```
