Webpack multi-page on-demand compilation of a page?

webpack multiple pages

how do I compile or package a page based on parameters? A folder is a single page,

Jun.29,2022

it is recommended to use vue-cli3.0 's routing packet multi-entry packaging function
configure multiple entries in vue.config.js

readingShow: {
    entry: 'src/entry/readingShow/readingShow.js',
    template: 'public/readingShow/readingShow.html',
    filename: 'readingShow.html'
  },
  classExercise: {
    entry: 'src/entry/classExercise/index.js',
    template: 'public/classExercise/index.html',
    filename: 'classExercise.html'
  },
  mapHoliday: {
    entry: 'src/entry/mapHoliday/index.js',
    template: 'public/mapHoliday/index.html',
    filename: 'mapHoliday.html'
  }

something like this

then define a command through the scripting tool to select and package dynamically

Menu