How should the path of all files under the specified file be written by webpack?

< H1 > problem description < / H1 >
var PAGE_PATH = path.resolve(__dirname, "../src/pages")
var merge = require("webpack-merge")
exports.entries = function () {
 var entryFiles = glob.sync(PAGE_PATH + "/*/*.js")
 

js file under level 2 target under pages code above

I want to change to all the js files of pages. How do I change this?

Sep.24,2021

'/ * * / * .js'

Menu