Skip to content

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

@sreecodeslayer

Description

@sreecodeslayer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions