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

Extracting vuetable from the generated script #1

Open
cetetesoft opened this issue Feb 20, 2017 · 3 comments
Open

Extracting vuetable from the generated script #1

cetetesoft opened this issue Feb 20, 2017 · 3 comments

Comments

@cetetesoft
Copy link

Hi.

I'm trying to integrate vuetable-2 into my Laravel application but cannot find out how to get vuetable-2 extracted into vendor.js. Any idea?

I have:
mix ... .extract(['vue','vuex','vuetable-2','jquery','axios','lodash','laravel-echo']);

Thanks a lot.

@ratiw
Copy link
Owner

ratiw commented Feb 21, 2017

@cetetesoft I truely have no idea on this, sorry. What I can tell is that Vuetable-2 is still distributed as a .vue source code, not bundled up in one javascript library.

It would be nice if it could be bundled up into one single js library, so that it can work with the CDN. But I still don't know how to do it via webpack at the moment.

However, you may try using mix to compile it down first, then extracts it into vendor.js. Please let me know if it works or not as I don't have time to play around with it.

@cetetesoft
Copy link
Author

Thanks for your reply. I'll try to do so and let you know if it doesn't work.

@nouphaltklm
Copy link

nouphaltklm commented Mar 8, 2017

You are missing a dist directory in your package.json for cross-env.js, hence the build fails. Adding the missing dist directory before bin in package.json solves the issue. eg: "dev": "node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV= ......

ratiw pushed a commit that referenced this issue Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants