const config = {
entry: "./src/index.js",
output: {
filename: "vue-context-menu.js",
// path: __dirname,
publicPath: '.',
library: 'VueContextMenu',
libraryTarget: 'umd'
},
vue-context-menu.js request 404 due to the config of publicPath, need to delete ".", just as follow:
publicPath: '',
const config = {
entry: "./src/index.js",
output: {
filename: "vue-context-menu.js",
// path: __dirname,
publicPath: '.',
library: 'VueContextMenu',
libraryTarget: 'umd'
},
vue-context-menu.js request 404 due to the config of publicPath, need to delete ".", just as follow:
publicPath: '',