Tried doing it by changing the webpack build conf as below:
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'vue-js-grid.js',
library:'VueJsGrid',
libraryTarget: 'umd',
umdNamedDefine: true
}
but the component is not registered.
[Vue warn]: Unknown custom element: <grid> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Is there anyway to do this correctly