euvl / vue-js-grid

:bento: Vue.js 2.x responsive grid system with smooth sorting, drag-n-drop and reordering
https://euvl.github.io/vue-js-grid/
MIT License
951 stars 109 forks source link

Is it possible to use this as script distribution? #15

Open sreecodeslayer opened 6 years ago

sreecodeslayer commented 6 years ago

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