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

Usage with webpack #23

Closed
PrimozRome opened this issue Mar 22, 2016 · 5 comments
Closed

Usage with webpack #23

PrimozRome opened this issue Mar 22, 2016 · 5 comments
Labels

Comments

@PrimozRome
Copy link

Did you use this with webpack maybe? Seems to be a problem... I am getting this error:

./~/vue-tables/lib/table-template.html
Module parse failed: /Users/primozrome/Documents/Web/webshop-frontend/node_modules/vue-tables/lib/table-template.html Line 1: Unexpected token <
You may need an appropriate loader to handle this file type.
| <div class="VueTables VueTables--[[source]]">
|   <div class="row">
|     <div class="col-md-6">
 @ ./~/vue-tables/lib/helpers/generate-table-html.js 3:17-50
@PrimozRome
Copy link
Author

I have installed html-loader and added this to the webpack configuration file and this solved the HTML loading issue

{ test: /\.html$/, loader: 'html' }

@matfish2
Copy link
Owner

Indeed, that is the equivalent of browserify's stringify transform

@decebal
Copy link

decebal commented May 13, 2016

try vue-html loader; worked for me

@bvelastegui
Copy link

bvelastegui commented May 25, 2016

Tanks @decebal this works

{ test: /\.html$/, loader: 'vue-html' }

@mohamed-ibrahem
Copy link

how can i solve this with laravel elixir?

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

5 participants