Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sreecodeslayer opened this issue Mar 13, 2018 · 0 comments
Open

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

sreecodeslayer opened this issue Mar 13, 2018 · 0 comments
Labels

Comments

@sreecodeslayer
Copy link

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

@euvl euvl added the question label Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants